#2D1D96#2D1D96

#2D1D96 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.183 H 277.3°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2D1D96
RGBrgb(45, 29, 150)
HSLhsl(248, 68%, 35%)
HSVhsv(248, 81%, 59%)
CMYKcmyk(70%, 80.7%, 0%, 41.2%)
CIE-LABlab(22.44, 44.16, -62.68)
CIE-LCHlch(22.44, 76.67, 305.16°)
OKLaboklab(35.1% 0.0232 -0.1811)
OKLCHoklch(35.1% 0.183 277.3)
XYZxyz(7.0248, 3.6380, 29.1802)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D96 #86961D
analogous
#1D4996 #2D1D96 #6A1D96
triadic
#2D1D96 #962D1D #1D962D
tetradic
#2D1D96 #961D49 #86961D #1D966A
square
#2D1D96 #961D49 #86961D #1D966A
split-complementary
#2D1D96 #966A1D #49961D
monochromatic
#0E092F #1E1363 #2D1D96 #3C27C9 #6350DD

Accessibility & contrast

On white

12.15
#2D1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D96
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D96#FFFFFF#000000##FFFFFF
##2D1D961.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1d96;
/* rgb */ color: rgb(45, 29, 150);
/* oklch */ color: oklch(35.1% 0.183 277.3);
Tailwind
colors: {
  custom: {
    50: '#775db6',
    500: '#2d1d96',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d96;
$custom-light: #775db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d96",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 247.934,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35095,
    "c": 0.18259,
    "h": 277.3
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#2D1D96
secondary
#B1C04F
accent
#EA3DD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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