#2D1D9C#2D1D9C

#2D1D9C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.190 H 276.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2D1D9C
RGBrgb(45, 29, 156)
HSLhsl(248, 69%, 36%)
HSVhsv(248, 81%, 61%)
CMYKcmyk(71.2%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.12, 46.02, -65.23)
CIE-LCHlch(23.12, 79.83, 305.20°)
OKLaboklab(35.77% 0.0215 -0.1885)
OKLCHoklch(35.77% 0.19 276.5)
XYZxyz(7.5203, 3.8362, 31.7902)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D9C #8C9C1D
analogous
#1D4D9C #2D1D9C #6D1D9C
triadic
#2D1D9C #9C2D1D #1D9C2D
tetradic
#2D1D9C #9C1D4D #8C9C1D #1D9C6D
square
#2D1D9C #9C1D4D #8C9C1D #1D9C6D
split-complementary
#2D1D9C #9C6D1D #4D9C1D
monochromatic
#0F0A35 #1E1368 #2D1D9C #3C27D0 #6654DF

Accessibility & contrast

On white

11.88
#2D1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1D9C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D9C#FFFFFF#000000##FFFFFF
##2D1D9C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d1d9c;
/* rgb */ color: rgb(45, 29, 156);
/* oklch */ color: oklch(35.8% 0.190 276.5);
Tailwind
colors: {
  custom: {
    50: '#785dbb',
    500: '#2d1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d9c;
$custom-light: #785dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d9c",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 247.559,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35772,
    "c": 0.18975,
    "h": 276.5
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#2D1D9C
secondary
#B4C252
accent
#EB3CD5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2D1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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