#2F194E#2F194E

#2F194E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.094 H 299.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2F194E
RGBrgb(47, 25, 78)
HSLhsl(265, 51%, 20%)
HSVhsv(265, 68%, 31%)
CMYKcmyk(39.7%, 67.9%, 0%, 69.4%)
CIE-LABlab(14.68, 23.91, -28.77)
CIE-LCHlch(14.68, 37.41, 309.74°)
OKLaboklab(27.47% 0.0458 -0.0817)
OKLCHoklch(27.47% 0.094 299.3)
XYZxyz(2.8947, 1.8496, 7.4108)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F194E #384E19
analogous
#191D4E #2F194E #49194E
triadic
#2F194E #4E2F19 #194E2F
tetradic
#2F194E #4E191D #384E19 #194E49
square
#2F194E #4E191D #384E19 #194E49
split-complementary
#2F194E #4E4919 #1D4E19
monochromatic
#0E0717 #130A20 #2F194E #4B287C #6737AB

Accessibility & contrast

On white

15.33
#2F194E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F194E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F194E
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F194E#FFFFFF#000000##FFFFFF
##2F194E1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#05254D
Tritanopia (blue-blind)
#282430
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f194e;
/* rgb */ color: rgb(47, 25, 78);
/* oklch */ color: oklch(27.5% 0.094 299.3);
Tailwind
colors: {
  custom: {
    50: '#6a5780',
    500: '#2f194e',
    950: '#000000',
  },
}
SCSS
$custom: #2f194e;
$custom-light: #6a5780;
$custom-dark: #000000;
JSON
{
  "hex": "#2f194e",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 78
  },
  "hsl": {
    "h": 264.906,
    "s": 51.456,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27473,
    "c": 0.09371,
    "h": 299.3
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#2F194E
secondary
#67843E
accent
#DB4DA0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F194E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2F194E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva