#2F188B#2F188B

#2F188B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.173 H 280.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2F188B
RGBrgb(47, 24, 139)
HSLhsl(252, 71%, 32%)
HSVhsv(252, 83%, 55%)
CMYKcmyk(66.2%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.52, 43.39, -59.00)
CIE-LCHlch(20.52, 73.24, 306.33°)
OKLaboklab(33.44% 0.0321 -0.1703)
OKLCHoklch(33.44% 0.173 280.7)
XYZxyz(6.1576, 3.1212, 24.6991)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F188B #748B18
analogous
#183B8B #2F188B #69188B
triadic
#2F188B #8B2F18 #188B2F
tetradic
#2F188B #8B183B #748B18 #188B69
square
#2F188B #8B183B #748B18 #188B69
split-complementary
#2F188B #8B6918 #3B8B18
monochromatic
#0C0623 #1D0F57 #2F188B #4121BF #5F3FDE

Accessibility & contrast

On white

12.93
#2F188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F188B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F188B#FFFFFF#000000##FFFFFF
##2F188B1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f188b;
/* rgb */ color: rgb(47, 24, 139);
/* oklch */ color: oklch(33.4% 0.173 280.7);
Tailwind
colors: {
  custom: {
    50: '#7559ae',
    500: '#2f188b',
    950: '#000000',
  },
}
SCSS
$custom: #2f188b;
$custom-light: #7559ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f188b",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 252,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.17329,
    "h": 280.7
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#2F188B
secondary
#A5BE40
accent
#ED3ACA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F188B

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

Preview Lab → · Contrast checker → · Palette generator →

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