#2D1D9F#2D1D9F

#2D1D9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.193 H 276.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2D1D9F
RGBrgb(45, 29, 159)
HSLhsl(247, 69%, 37%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(71.7%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.47, 46.95, -66.49)
CIE-LCHlch(23.47, 81.39, 305.23°)
OKLaboklab(36.11% 0.0207 -0.1922)
OKLCHoklch(36.11% 0.193 276.1)
XYZxyz(7.7775, 3.9391, 33.1446)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D9F #8F9F1D
analogous
#1D4E9F #2D1D9F #6E1D9F
triadic
#2D1D9F #9F2D1D #1D9F2D
tetradic
#2D1D9F #9F1D4E #8F9F1D #1D9F6E
square
#2D1D9F #9F1D4E #8F9F1D #1D9F6E
split-complementary
#2D1D9F #9F6E1D #4E9F1D
monochromatic
#100A37 #1E146B #2D1D9F #3C26D3 #6756E0

Accessibility & contrast

On white

11.74
#2D1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D9F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D9F#FFFFFF#000000##FFFFFF
##2D1D9F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d1d9f;
/* rgb */ color: rgb(45, 29, 159);
/* oklch */ color: oklch(36.1% 0.193 276.1);
Tailwind
colors: {
  custom: {
    50: '#795dbd',
    500: '#2d1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d9f;
$custom-light: #795dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d9f",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 247.385,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36114,
    "c": 0.1933,
    "h": 276.1
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#2D1D9F
secondary
#B6C454
accent
#EC3CD6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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