#2F184E#2F184E

#2F184E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.095 H 299.7°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2F184E
RGBrgb(47, 24, 78)
HSLhsl(266, 53%, 20%)
HSVhsv(266, 69%, 31%)
CMYKcmyk(39.7%, 69.2%, 0%, 69.4%)
CIE-LABlab(14.44, 24.54, -29.14)
CIE-LCHlch(14.44, 38.10, 310.10°)
OKLaboklab(27.3% 0.0472 -0.0828)
OKLCHoklch(27.3% 0.095 299.7)
XYZxyz(2.8737, 1.8076, 7.4038)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F184E #374E18
analogous
#181C4E #2F184E #4A184E
triadic
#2F184E #4E2F18 #184E2F
tetradic
#2F184E #4E181C #374E18 #184E4A
square
#2F184E #4E181C #374E18 #184E4A
split-complementary
#2F184E #4E4A18 #1C4E18
monochromatic
#0E0717 #130A1F #2F184E #4B267D #6735AC

Accessibility & contrast

On white

15.42
#2F184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F184E
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F184E#FFFFFF#000000##FFFFFF
##2F184E1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f184e;
/* rgb */ color: rgb(47, 24, 78);
/* oklch */ color: oklch(27.3% 0.095 299.7);
Tailwind
colors: {
  custom: {
    50: '#6a5680',
    500: '#2f184e',
    950: '#000000',
  },
}
SCSS
$custom: #2f184e;
$custom-light: #6a5680;
$custom-dark: #000000;
JSON
{
  "hex": "#2f184e",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 265.556,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.27303,
    "c": 0.09534,
    "h": 299.7
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#2F184E
secondary
#66853D
accent
#DC4B9F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F184E

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

Preview Lab → · Contrast checker → · Palette generator →

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