#2F184C#2F184C

#2F184C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.093 H 300.7°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#2F184C
RGBrgb(47, 24, 76)
HSLhsl(267, 52%, 20%)
HSVhsv(267, 68%, 30%)
CMYKcmyk(38.2%, 68.4%, 0%, 70.2%)
CIE-LABlab(14.28, 23.94, -28.03)
CIE-LCHlch(14.28, 36.86, 310.51°)
OKLaboklab(27.14% 0.0473 -0.0796)
OKLCHoklch(27.14% 0.093 300.7)
XYZxyz(2.8031, 1.7794, 7.0319)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F184C #354C18
analogous
#181B4C #2F184C #49184C
triadic
#2F184C #4C2F18 #184C2F
tetradic
#2F184C #4C181B #354C18 #184C49
square
#2F184C #4C181B #354C18 #184C49
split-complementary
#2F184C #4C4918 #1B4C18
monochromatic
#0E0717 #12091D #2F184C #4C277B #6935A9

Accessibility & contrast

On white

15.49
#2F184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F184C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F184C#FFFFFF#000000##FFFFFF
##2F184C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#06244B
Tritanopia (blue-blind)
#29232F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f184c;
/* rgb */ color: rgb(47, 24, 76);
/* oklch */ color: oklch(27.1% 0.093 300.7);
Tailwind
colors: {
  custom: {
    50: '#6a567e',
    500: '#2f184c',
    950: '#000000',
  },
}
SCSS
$custom: #2f184c;
$custom-light: #6a567e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f184c",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 266.538,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27137,
    "c": 0.09257,
    "h": 300.7
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#2F184C
secondary
#64833D
accent
#DB4C9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F184C

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

Preview Lab → · Contrast checker → · Palette generator →

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