#2D188C#2D188C

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

Color values

HEX#2D188C
RGBrgb(45, 24, 140)
HSLhsl(251, 71%, 32%)
HSVhsv(251, 83%, 55%)
CMYKcmyk(67.9%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.46, 43.49, -59.75)
CIE-LCHlch(20.46, 73.90, 306.05°)
OKLaboklab(33.38% 0.0286 -0.1725)
OKLCHoklch(33.38% 0.175 279.4)
XYZxyz(6.1409, 3.1041, 25.0814)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D188C #778C18
analogous
#183D8C #2D188C #67188C
triadic
#2D188C #8C2D18 #188C2D
tetradic
#2D188C #8C183D #778C18 #188C67
square
#2D188C #8C183D #778C18 #188C67
split-complementary
#2D188C #8C6718 #3D8C18
monochromatic
#0B0624 #1C0F58 #2D188C #3E21C0 #5D40DE

Accessibility & contrast

On white

12.95
#2D188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D188C
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D188C#FFFFFF#000000##FFFFFF
##2D188C1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d188c;
/* rgb */ color: rgb(45, 24, 140);
/* oklch */ color: oklch(33.4% 0.175 279.4);
Tailwind
colors: {
  custom: {
    50: '#7559af',
    500: '#2d188c',
    950: '#000000',
  },
}
SCSS
$custom: #2d188c;
$custom-light: #7559af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d188c",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 250.862,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33384,
    "c": 0.17487,
    "h": 279.4
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#2D188C
secondary
#A8BF41
accent
#ED3ACD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D188C

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

Preview Lab → · Contrast checker → · Palette generator →

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