#2D187B#2D187B

#2D187B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.154 H 282.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2D187B
RGBrgb(45, 24, 123)
HSLhsl(253, 67%, 29%)
HSVhsv(253, 80%, 48%)
CMYKcmyk(63.4%, 80.5%, 0%, 51.8%)
CIE-LABlab(18.54, 38.24, -52.17)
CIE-LCHlch(18.54, 64.68, 306.24°)
OKLaboklab(31.49% 0.034 -0.1504)
OKLCHoklch(31.49% 0.154 282.7)
XYZxyz(4.9829, 2.6409, 18.9822)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D187B #667B18
analogous
#18357B #2D187B #5F187B
triadic
#2D187B #7B2D18 #187B2D
tetradic
#2D187B #7B1835 #667B18 #187B5F
square
#2D187B #7B1835 #667B18 #187B5F
split-complementary
#2D187B #7B5F18 #357B18
monochromatic
#09051A #1A0E48 #2D187B #4022AE #5836D8

Accessibility & contrast

On white

13.74
#2D187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D187B
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D187B#FFFFFF#000000##FFFFFF
##2D187B1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d187b;
/* rgb */ color: rgb(45, 24, 123);
/* oklch */ color: oklch(31.5% 0.154 282.7);
Tailwind
colors: {
  custom: {
    50: '#7158a2',
    500: '#2d187b',
    950: '#000000',
  },
}
SCSS
$custom: #2d187b;
$custom-light: #7158a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d187b",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 252.727,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3149,
    "c": 0.15423,
    "h": 282.7
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#2D187B
secondary
#98B03F
accent
#EA3EC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D187B

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

Preview Lab → · Contrast checker → · Palette generator →

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