#2F188A#2F188A

#2F188A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.172 H 280.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2F188A
RGBrgb(47, 24, 138)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 83%, 54%)
CMYKcmyk(65.9%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.41, 43.09, -58.57)
CIE-LCHlch(20.41, 72.71, 306.34°)
OKLaboklab(33.33% 0.0324 -0.169)
OKLCHoklch(33.33% 0.172 280.8)
XYZxyz(6.0849, 3.0921, 24.3160)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F188A #738A18
analogous
#183A8A #2F188A #68188A
triadic
#2F188A #8A2F18 #188A2F
tetradic
#2F188A #8A183A #738A18 #188A68
square
#2F188A #8A183A #738A18 #188A68
split-complementary
#2F188A #8A6818 #3A8A18
monochromatic
#0B0622 #1D0F56 #2F188A #4121BE #5F3FDE

Accessibility & contrast

On white

12.97
#2F188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F188A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F188A#FFFFFF#000000##FFFFFF
##2F188A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f188a;
/* rgb */ color: rgb(47, 24, 138);
/* oklch */ color: oklch(33.3% 0.172 280.8);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#2f188a',
    950: '#000000',
  },
}
SCSS
$custom: #2f188a;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f188a",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 252.105,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33329,
    "c": 0.17211,
    "h": 280.8
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#2F188A
secondary
#A4BD40
accent
#ED3BC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F188A

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

Preview Lab → · Contrast checker → · Palette generator →

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