#2D1B7E#2D1B7E

#2D1B7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.155 H 281.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2D1B7E
RGBrgb(45, 27, 126)
HSLhsl(251, 65%, 30%)
HSVhsv(251, 79%, 49%)
CMYKcmyk(64.3%, 78.6%, 0%, 50.6%)
CIE-LABlab(19.42, 37.60, -52.63)
CIE-LCHlch(19.42, 64.68, 305.54°)
OKLaboklab(32.2% 0.0311 -0.1518)
OKLCHoklch(32.2% 0.155 281.6)
XYZxyz(5.2388, 2.8477, 20.0082)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B7E #6C7E1B
analogous
#1B3B7E #2D1B7E #5E1B7E
triadic
#2D1B7E #7E2D1B #1B7E2D
tetradic
#2D1B7E #7E1B3B #6C7E1B #1B7E5E
square
#2D1B7E #7E1B3B #6C7E1B #1B7E5E
split-complementary
#2D1B7E #7E5E1B #3B7E1B
monochromatic
#090519 #1B104C #2D1B7E #3F26B0 #593ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1B7E#FFFFFF#000000##FFFFFF
##2D1B7E1.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)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1b7e;
/* rgb */ color: rgb(45, 27, 126);
/* oklch */ color: oklch(32.2% 0.155 281.6);
Tailwind
colors: {
  custom: {
    50: '#715aa4',
    500: '#2d1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b7e;
$custom-light: #715aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b7e",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 250.909,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.32202,
    "c": 0.15497,
    "h": 281.6
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#2D1B7E
secondary
#9EB243
accent
#E840C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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