#2D1D9D#2D1D9D

#2D1D9D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.191 H 276.4°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2D1D9D
RGBrgb(45, 29, 157)
HSLhsl(248, 69%, 36%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(71.3%, 81.5%, 0%, 38.4%)
CIE-LABlab(23.24, 46.33, -65.65)
CIE-LCHlch(23.24, 80.35, 305.21°)
OKLaboklab(35.89% 0.0213 -0.1897)
OKLCHoklch(35.89% 0.191 276.4)
XYZxyz(7.6054, 3.8702, 32.2380)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D9D #8D9D1D
analogous
#1D4D9D #2D1D9D #6D1D9D
triadic
#2D1D9D #9D2D1D #1D9D2D
tetradic
#2D1D9D #9D1D4D #8D9D1D #1D9D6D
square
#2D1D9D #9D1D4D #8D9D1D #1D9D6D
split-complementary
#2D1D9D #9D6D1D #4D9D1D
monochromatic
#0F0A36 #1E1369 #2D1D9D #3C27D1 #6655E0

Accessibility & contrast

On white

11.84
#2D1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D1D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D9D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D9D#FFFFFF#000000##FFFFFF
##2D1D9D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1d9d;
/* rgb */ color: rgb(45, 29, 157);
/* oklch */ color: oklch(35.9% 0.191 276.4);
Tailwind
colors: {
  custom: {
    50: '#785dbb',
    500: '#2d1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d9d;
$custom-light: #785dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d9d",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 247.5,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.19094,
    "h": 276.4
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#2D1D9D
secondary
#B5C353
accent
#EC3CD6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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