#2F189B#2F189B

#2F189B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.192 H 278.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2F189B
RGBrgb(47, 24, 155)
HSLhsl(251, 73%, 35%)
HSVhsv(251, 85%, 61%)
CMYKcmyk(69.7%, 84.5%, 0%, 39.2%)
CIE-LABlab(22.39, 48.18, -65.83)
CIE-LCHlch(22.39, 81.58, 306.20°)
OKLaboklab(35.27% 0.0268 -0.1902)
OKLCHoklch(35.27% 0.192 278)
XYZxyz(7.4134, 3.6235, 31.3127)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F189B #849B18
analogous
#18439B #2F189B #70189B
triadic
#2F189B #9B2F18 #189B2F
tetradic
#2F189B #9B1843 #849B18 #189B70
square
#2F189B #9B1843 #849B18 #189B70
split-complementary
#2F189B #9B7018 #439B18
monochromatic
#0F0831 #1F1066 #2F189B #3F20D0 #654AE3

Accessibility & contrast

On white

12.18
#2F189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F189B
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F189B#FFFFFF#000000##FFFFFF
##2F189B1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f189b;
/* rgb */ color: rgb(47, 24, 155);
/* oklch */ color: oklch(35.3% 0.192 278.0);
Tailwind
colors: {
  custom: {
    50: '#795bba',
    500: '#2f189b',
    950: '#000000',
  },
}
SCSS
$custom: #2f189b;
$custom-light: #795bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f189b",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 250.534,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3527,
    "c": 0.19203,
    "h": 278
  },
  "luminance": 0.03624
}

Semantic roles & 50–950 ramp

primary
#2F189B
secondary
#AFC54A
accent
#F038D0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F189B

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

Preview Lab → · Contrast checker → · Palette generator →

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