#2D1B76#2D1B76

#2D1B76 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.145 H 283.3°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2D1B76
RGBrgb(45, 27, 118)
HSLhsl(252, 63%, 28%)
HSVhsv(252, 77%, 46%)
CMYKcmyk(61.9%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.58, 35.02, -48.90)
CIE-LCHlch(18.58, 60.15, 305.61°)
OKLaboklab(31.36% 0.0332 -0.1409)
OKLCHoklch(31.36% 0.145 283.3)
XYZxyz(4.7431, 2.6494, 17.3975)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B76 #64761B
analogous
#1B3676 #2D1B76 #5A1B76
triadic
#2D1B76 #762D1B #1B762D
tetradic
#2D1B76 #761B36 #64761B #1B765A
square
#2D1B76 #761B36 #64761B #1B765A
split-complementary
#2D1B76 #765A1B #36761B
monochromatic
#090619 #1A1044 #2D1B76 #4026A8 #583AD2

Accessibility & contrast

On white

13.73
#2D1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B76
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B76#FFFFFF#000000##FFFFFF
##2D1B761.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1b76;
/* rgb */ color: rgb(45, 27, 118);
/* oklch */ color: oklch(31.4% 0.145 283.3);
Tailwind
colors: {
  custom: {
    50: '#705a9e',
    500: '#2d1b76',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b76;
$custom-light: #705a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b76",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 251.868,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31356,
    "c": 0.1448,
    "h": 283.3
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#2D1B76
secondary
#96AA42
accent
#E642C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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