#2D187D#2D187D

#2D187D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.157 H 282.3°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2D187D
RGBrgb(45, 24, 125)
HSLhsl(252, 68%, 29%)
HSVhsv(252, 81%, 49%)
CMYKcmyk(64%, 80.8%, 0%, 51%)
CIE-LABlab(18.76, 38.86, -53.08)
CIE-LCHlch(18.76, 65.79, 306.21°)
OKLaboklab(31.71% 0.0334 -0.1531)
OKLCHoklch(31.71% 0.157 282.3)
XYZxyz(5.1093, 2.6915, 19.6483)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D187D #687D18
analogous
#18367D #2D187D #60187D
triadic
#2D187D #7D2D18 #187D2D
tetradic
#2D187D #7D1836 #687D18 #187D60
square
#2D187D #7D1836 #687D18 #187D60
split-complementary
#2D187D #7D6018 #367D18
monochromatic
#09051A #1B0E4A #2D187D #3F22B0 #5837D9

Accessibility & contrast

On white

13.65
#2D187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D187D
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D187D#FFFFFF#000000##FFFFFF
##2D187D1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d187d;
/* rgb */ color: rgb(45, 24, 125);
/* oklch */ color: oklch(31.7% 0.157 282.3);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2d187d',
    950: '#000000',
  },
}
SCSS
$custom: #2d187d;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d187d",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 252.475,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31708,
    "c": 0.1567,
    "h": 282.3
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#2D187D
secondary
#9AB23F
accent
#EB3DC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D187D

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

Preview Lab → · Contrast checker → · Palette generator →

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