#2D1B71#2D1B71

#2D1B71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.138 H 284.4°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2D1B71
RGBrgb(45, 27, 113)
HSLhsl(253, 61%, 27%)
HSVhsv(253, 76%, 44%)
CMYKcmyk(60.2%, 76.1%, 0%, 55.7%)
CIE-LABlab(18.07, 33.41, -46.52)
CIE-LCHlch(18.07, 57.27, 305.68°)
OKLaboklab(30.84% 0.0345 -0.134)
OKLCHoklch(30.84% 0.138 284.4)
XYZxyz(4.4538, 2.5337, 15.8740)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B71 #5F711B
analogous
#1B3471 #2D1B71 #581B71
triadic
#2D1B71 #712D1B #1B712D
tetradic
#2D1B71 #711B34 #5F711B #1B7158
square
#2D1B71 #711B34 #5F711B #1B7158
split-complementary
#2D1B71 #71581B #34711B
monochromatic
#0A0619 #190F40 #2D1B71 #4127A2 #5737CF

Accessibility & contrast

On white

13.94
#2D1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B71
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B71#FFFFFF#000000##FFFFFF
##2D1B711.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#093344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1b71;
/* rgb */ color: rgb(45, 27, 113);
/* oklch */ color: oklch(30.8% 0.138 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f599b',
    500: '#2d1b71',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b71;
$custom-light: #6f599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b71",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 252.558,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30839,
    "c": 0.13832,
    "h": 284.4
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#2D1B71
secondary
#91A642
accent
#E543C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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