#2F184A#2F184A

#2F184A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.090 H 301.9°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2F184A
RGBrgb(47, 24, 74)
HSLhsl(268, 51%, 19%)
HSVhsv(268, 68%, 29%)
CMYKcmyk(36.5%, 67.6%, 0%, 71%)
CIE-LABlab(14.13, 23.35, -26.90)
CIE-LCHlch(14.13, 35.62, 310.96°)
OKLaboklab(26.97% 0.0474 -0.0763)
OKLCHoklch(26.97% 0.09 301.9)
XYZxyz(2.7347, 1.7520, 6.6713)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F184A #334A18
analogous
#181A4A #2F184A #48184A
triadic
#2F184A #4A2F18 #184A2F
tetradic
#2F184A #4A181A #334A18 #184A48
square
#2F184A #4A181A #334A18 #184A48
split-complementary
#2F184A #4A4818 #1A4A18
monochromatic
#0F0717 #12091C #2F184A #4C2778 #6A36A6

Accessibility & contrast

On white

15.55
#2F184A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F184A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F184A
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F184A#FFFFFF#000000##FFFFFF
##2F184A1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244C
Deuteranopia (green-blind)
#092449
Tritanopia (blue-blind)
#2A222E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f184a;
/* rgb */ color: rgb(47, 24, 74);
/* oklch */ color: oklch(27.0% 0.090 301.9);
Tailwind
colors: {
  custom: {
    50: '#6a567d',
    500: '#2f184a',
    950: '#000000',
  },
}
SCSS
$custom: #2f184a;
$custom-light: #6a567d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f184a",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 74
  },
  "hsl": {
    "h": 267.6,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26974,
    "c": 0.0898,
    "h": 301.9
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#2F184A
secondary
#62813D
accent
#DA4D9A
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #2F184A

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

Preview Lab → · Contrast checker → · Palette generator →

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