#2F104F

A color in the Violet family

#2f104f is a color in the Violet family: RGB(47, 16, 79), HSL(270°, 66%, 19%), CMYK(41%, 80%, 0%, 69%). Closest named color: midnightblue. Contrast is 16.06:1 on white and 1.31:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#2f104f
RGBrgb(47 16 79)
RGB (legacy)rgb(47, 16, 79)
RGB %rgb(18% 6% 31%)
HSLhsl(270 66% 19%)
HSV / HSBhsv(270, 80%, 31%)
HWBhwb(270 6% 69%)
CMYKcmyk(41%, 80%, 0%, 69%)
CIELAB (D50)lab(12.47 26.41 -32.85)
LCHlch(12.47 42.16 308.8)
OKLaboklab(0.2619 0.057 -0.0924)
OKLCHoklch(0.2619 0.1085 301.65)
Decimal3084367

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 7.6
Closest web-safe color#330066
Hue270°
Saturation (HSL / HSV)66% / 80%
Lightness (HSL)19%
Brightness or Value (HSV)31%
Luminance (Rec.601 / Rec.709)13% / 11%
Relative luminance (WCAG)0.0154
Red / Green / Blue47 / 16 / 79

WCAG 2.2 Contrast Ratio

On White (#ffffff)
16.06:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.31:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 102.5 / 0 · As background with white / black text: Lc -105.2 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #2f104f;
  --color-brand-oklch: oklch(26.19% 0.1085 301.65);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(47 16 79 / 50%); }
/* Tailwind CSS */
<div class="bg-[#2f104f] text-[#2f104f] border-[#2f104f]">