#2D188D#2D188D

#2D188D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.176 H 279.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2D188D
RGBrgb(45, 24, 141)
HSLhsl(251, 71%, 32%)
HSVhsv(251, 83%, 55%)
CMYKcmyk(68.1%, 83%, 0%, 44.7%)
CIE-LABlab(20.57, 43.80, -60.18)
CIE-LCHlch(20.57, 74.43, 306.05°)
OKLaboklab(33.5% 0.0283 -0.1738)
OKLCHoklch(33.5% 0.176 279.3)
XYZxyz(6.2150, 3.1337, 25.4715)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D188D #788D18
analogous
#183E8D #2D188D #67188D
triadic
#2D188D #8D2D18 #188D2D
tetradic
#2D188D #8D183E #788D18 #188D67
square
#2D188D #8D183E #788D18 #188D67
split-complementary
#2D188D #8D6718 #3E8D18
monochromatic
#0C0624 #1C0F59 #2D188D #3E21C1 #5D41DF

Accessibility & contrast

On white

12.91
#2D188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D188D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D188D#FFFFFF#000000##FFFFFF
##2D188D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d188d;
/* rgb */ color: rgb(45, 24, 141);
/* oklch */ color: oklch(33.5% 0.176 279.3);
Tailwind
colors: {
  custom: {
    50: '#7559b0',
    500: '#2d188d',
    950: '#000000',
  },
}
SCSS
$custom: #2d188d;
$custom-light: #7559b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d188d",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 250.769,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.17606,
    "h": 279.3
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#2D188D
secondary
#A9BF42
accent
#EE3ACD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D188D

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

Preview Lab → · Contrast checker → · Palette generator →

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