#2D1D8C#2D1D8C

#2D1D8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.170 H 278.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2D1D8C
RGBrgb(45, 29, 140)
HSLhsl(249, 66%, 33%)
HSVhsv(249, 79%, 55%)
CMYKcmyk(67.9%, 79.3%, 0%, 45.1%)
CIE-LABlab(21.32, 41.00, -58.32)
CIE-LCHlch(21.32, 71.29, 305.11°)
OKLaboklab(33.98% 0.026 -0.1684)
OKLCHoklch(33.98% 0.17 278.8)
XYZxyz(6.2537, 3.3295, 25.1190)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D8C #7C8C1D
analogous
#1D448C #2D1D8C #641D8C
triadic
#2D1D8C #8C2D1D #1D8C2D
tetradic
#2D1D8C #8C1D44 #7C8C1D #1D8C64
square
#2D1D8C #8C1D44 #7C8C1D #1D8C64
split-complementary
#2D1D8C #8C641D #448C1D
monochromatic
#0C0827 #1D1259 #2D1D8C #3D28BF #5F4AD9

Accessibility & contrast

On white

12.61
#2D1D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D1D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D8C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D8C#FFFFFF#000000##FFFFFF
##2D1D8C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d1d8c;
/* rgb */ color: rgb(45, 29, 140);
/* oklch */ color: oklch(34.0% 0.170 278.8);
Tailwind
colors: {
  custom: {
    50: '#745caf',
    500: '#2d1d8c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d8c;
$custom-light: #745caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d8c",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 248.649,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33984,
    "c": 0.17042,
    "h": 278.8
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#2D1D8C
secondary
#ABBC49
accent
#E93FD0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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