#2D188A#2D188A

#2D188A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.172 H 279.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2D188A
RGBrgb(45, 24, 138)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 83%, 54%)
CMYKcmyk(67.4%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.23, 42.88, -58.88)
CIE-LCHlch(20.23, 72.84, 306.07°)
OKLaboklab(33.16% 0.0293 -0.17)
OKLCHoklch(33.16% 0.172 279.8)
XYZxyz(5.9948, 3.0456, 24.3118)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D188A #758A18
analogous
#183C8A #2D188A #66188A
triadic
#2D188A #8A2D18 #188A2D
tetradic
#2D188A #8A183C #758A18 #188A66
square
#2D188A #8A183C #758A18 #188A66
split-complementary
#2D188A #8A6618 #3C8A18
monochromatic
#0B0622 #1C0F56 #2D188A #3E21BE #5C3FDE

Accessibility & contrast

On white

13.05
#2D188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D188A
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D188A#FFFFFF#000000##FFFFFF
##2D188A1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d188a;
/* rgb */ color: rgb(45, 24, 138);
/* oklch */ color: oklch(33.2% 0.172 279.8);
Tailwind
colors: {
  custom: {
    50: '#7459ad',
    500: '#2d188a',
    950: '#000000',
  },
}
SCSS
$custom: #2d188a;
$custom-light: #7459ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d188a",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 251.053,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33157,
    "c": 0.17248,
    "h": 279.8
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#2D188A
secondary
#A6BD40
accent
#ED3BCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D188A

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

Preview Lab → · Contrast checker → · Palette generator →

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