#2D1B7F#2D1B7F

#2D1B7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.156 H 281.4°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2D1B7F
RGBrgb(45, 27, 127)
HSLhsl(251, 65%, 30%)
HSVhsv(251, 79%, 50%)
CMYKcmyk(64.6%, 78.7%, 0%, 50.2%)
CIE-LABlab(19.53, 37.92, -53.09)
CIE-LCHlch(19.53, 65.24, 305.53°)
OKLaboklab(32.31% 0.0308 -0.1532)
OKLCHoklch(32.31% 0.156 281.4)
XYZxyz(5.3037, 2.8737, 20.3497)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B7F #6D7F1B
analogous
#1B3B7F #2D1B7F #5F1B7F
triadic
#2D1B7F #7F2D1B #1B7F2D
tetradic
#2D1B7F #7F1B3B #6D7F1B #1B7F5F
square
#2D1B7F #7F1B3B #6D7F1B #1B7F5F
split-complementary
#2D1B7F #7F5F1B #3B7F1B
monochromatic
#09061A #1B104D #2D1B7F #3F26B1 #5A3ED6

Accessibility & contrast

On white

13.34
#2D1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B7F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B7F#FFFFFF#000000##FFFFFF
##2D1B7F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1b7f;
/* rgb */ color: rgb(45, 27, 127);
/* oklch */ color: oklch(32.3% 0.156 281.4);
Tailwind
colors: {
  custom: {
    50: '#725aa5',
    500: '#2d1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b7f;
$custom-light: #725aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b7f",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 250.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3231,
    "c": 0.15623,
    "h": 281.4
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#2D1B7F
secondary
#9FB343
accent
#E840CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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