#2D1D9E#2D1D9E

#2D1D9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.192 H 276.3°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2D1D9E
RGBrgb(45, 29, 158)
HSLhsl(247, 69%, 37%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(71.5%, 81.6%, 0%, 38%)
CIE-LABlab(23.35, 46.64, -66.07)
CIE-LCHlch(23.35, 80.87, 305.22°)
OKLaboklab(36% 0.021 -0.191)
OKLCHoklch(36% 0.192 276.3)
XYZxyz(7.6911, 3.9045, 32.6894)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D9E #8E9E1D
analogous
#1D4E9E #2D1D9E #6E1D9E
triadic
#2D1D9E #9E2D1D #1D9E2D
tetradic
#2D1D9E #9E1D4E #8E9E1D #1D9E6E
square
#2D1D9E #9E1D4E #8E9E1D #1D9E6E
split-complementary
#2D1D9E #9E6E1D #4E9E1D
monochromatic
#100A37 #1E146A #2D1D9E #3C26D2 #6756E0

Accessibility & contrast

On white

11.79
#2D1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D9E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D9E#FFFFFF#000000##FFFFFF
##2D1D9E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d1d9e;
/* rgb */ color: rgb(45, 29, 158);
/* oklch */ color: oklch(36.0% 0.192 276.3);
Tailwind
colors: {
  custom: {
    50: '#785dbc',
    500: '#2d1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d9e;
$custom-light: #785dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d9e",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 247.442,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36,
    "c": 0.19212,
    "h": 276.3
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#2D1D9E
secondary
#B5C354
accent
#EC3CD6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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