#2D1F76#2D1F76

#2D1F76 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.140 H 282.3°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2D1F76
RGBrgb(45, 31, 118)
HSLhsl(250, 58%, 29%)
HSVhsv(250, 74%, 46%)
CMYKcmyk(61.9%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.41, 32.70, -47.54)
CIE-LCHlch(19.41, 57.69, 304.52°)
OKLaboklab(31.95% 0.03 -0.137)
OKLCHoklch(31.95% 0.14 282.3)
XYZxyz(4.8412, 2.8455, 17.4302)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F76 #68761F
analogous
#1F3D76 #2D1F76 #591F76
triadic
#2D1F76 #762D1F #1F762D
tetradic
#2D1F76 #761F3D #68761F #1F7659
square
#2D1F76 #761F3D #68761F #1F7659
split-complementary
#2D1F76 #76591F #3D761F
monochromatic
#090618 #1B1246 #2D1F76 #3F2CA6 #5842CD

Accessibility & contrast

On white

13.38
#2D1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F76
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F76#FFFFFF#000000##FFFFFF
##2D1F761.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1f76;
/* rgb */ color: rgb(45, 31, 118);
/* oklch */ color: oklch(31.9% 0.140 282.3);
Tailwind
colors: {
  custom: {
    50: '#6f5c9e',
    500: '#2d1f76',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f76;
$custom-light: #6f5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f76",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 249.655,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31947,
    "c": 0.1402,
    "h": 282.3
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#2D1F76
secondary
#9AAA47
accent
#E246C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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