#2D188B#2D188B

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

Color values

HEX#2D188B
RGBrgb(45, 24, 139)
HSLhsl(251, 71%, 32%)
HSVhsv(251, 83%, 55%)
CMYKcmyk(67.6%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.34, 43.19, -59.31)
CIE-LCHlch(20.34, 73.37, 306.06°)
OKLaboklab(33.27% 0.029 -0.1713)
OKLCHoklch(33.27% 0.174 279.6)
XYZxyz(6.0675, 3.0747, 24.6948)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D188B #768B18
analogous
#183C8B #2D188B #67188B
triadic
#2D188B #8B2D18 #188B2D
tetradic
#2D188B #8B183C #768B18 #188B67
square
#2D188B #8B183C #768B18 #188B67
split-complementary
#2D188B #8B6718 #3C8B18
monochromatic
#0B0623 #1C0F57 #2D188B #3E21BF #5C3FDE

Accessibility & contrast

On white

13.00
#2D188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D188B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D188B#FFFFFF#000000##FFFFFF
##2D188B1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d188b;
/* rgb */ color: rgb(45, 24, 139);
/* oklch */ color: oklch(33.3% 0.174 279.6);
Tailwind
colors: {
  custom: {
    50: '#7559ae',
    500: '#2d188b',
    950: '#000000',
  },
}
SCSS
$custom: #2d188b;
$custom-light: #7559ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d188b",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 250.957,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3327,
    "c": 0.17368,
    "h": 279.6
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#2D188B
secondary
#A7BE40
accent
#ED3ACD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D188B

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

Preview Lab → · Contrast checker → · Palette generator →

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