#2D1E8D#2D1E8D

#2D1E8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.171 H 278.5°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2D1E8D
RGBrgb(45, 30, 141)
HSLhsl(248, 65%, 34%)
HSVhsv(248, 79%, 55%)
CMYKcmyk(68.1%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.61, 40.79, -58.46)
CIE-LCHlch(21.61, 71.28, 304.91°)
OKLaboklab(34.22% 0.0252 -0.1688)
OKLCHoklch(34.22% 0.171 278.5)
XYZxyz(6.3526, 3.4090, 25.5174)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E8D #7E8D1E
analogous
#1E468D #2D1E8D #641E8D
triadic
#2D1E8D #8D2D1E #1E8D2D
tetradic
#2D1E8D #8D1E46 #7E8D1E #1E8D64
square
#2D1E8D #8D1E46 #7E8D1E #1E8D64
split-complementary
#2D1E8D #8D641E #468D1E
monochromatic
#0D0928 #1D135B #2D1E8D #3D29BF #5F4CD9

Accessibility & contrast

On white

12.49
#2D1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D1E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1E8D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E8D#FFFFFF#000000##FFFFFF
##2D1E8D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d1e8d;
/* rgb */ color: rgb(45, 30, 141);
/* oklch */ color: oklch(34.2% 0.171 278.5);
Tailwind
colors: {
  custom: {
    50: '#745daf',
    500: '#2d1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e8d;
$custom-light: #745daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e8d",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 248.108,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34223,
    "c": 0.17071,
    "h": 278.5
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#2D1E8D
secondary
#ACBC4B
accent
#E840D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2D1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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