#2F184F#2F184F

#2F184F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.097 H 299.1°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2F184F
RGBrgb(47, 24, 79)
HSLhsl(265, 53%, 20%)
HSVhsv(265, 70%, 31%)
CMYKcmyk(40.5%, 69.6%, 0%, 69%)
CIE-LABlab(14.52, 24.85, -29.70)
CIE-LCHlch(14.52, 38.72, 309.92°)
OKLaboklab(27.39% 0.0471 -0.0845)
OKLCHoklch(27.39% 0.097 299.1)
XYZxyz(2.9099, 1.8221, 7.5940)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F184F #384F18
analogous
#181C4F #2F184F #4A184F
triadic
#2F184F #4F2F18 #184F2F
tetradic
#2F184F #4F181C #384F18 #184F4A
square
#2F184F #4F181C #384F18 #184F4A
split-complementary
#2F184F #4F4A18 #1C4F18
monochromatic
#0E0717 #130A20 #2F184F #4B267E #6735AD

Accessibility & contrast

On white

15.39
#2F184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F184F
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F184F#FFFFFF#000000##FFFFFF
##2F184F1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#02244E
Tritanopia (blue-blind)
#282431
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f184f;
/* rgb */ color: rgb(47, 24, 79);
/* oklch */ color: oklch(27.4% 0.097 299.1);
Tailwind
colors: {
  custom: {
    50: '#6b5681',
    500: '#2f184f',
    950: '#000000',
  },
}
SCSS
$custom: #2f184f;
$custom-light: #6b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#2f184f",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 265.091,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27387,
    "c": 0.09671,
    "h": 299.1
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#2F184F
secondary
#67863D
accent
#DD4BA0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F184F

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

Preview Lab → · Contrast checker → · Palette generator →

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