#2D1B73#2D1B73

#2D1B73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.141 H 283.9°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2D1B73
RGBrgb(45, 27, 115)
HSLhsl(252, 62%, 28%)
HSVhsv(252, 77%, 45%)
CMYKcmyk(60.9%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.27, 34.05, -47.48)
CIE-LCHlch(18.27, 58.43, 305.65°)
OKLaboklab(31.05% 0.034 -0.1368)
OKLCHoklch(31.05% 0.141 283.9)
XYZxyz(4.5677, 2.5793, 16.4735)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B73 #61731B
analogous
#1B3573 #2D1B73 #591B73
triadic
#2D1B73 #732D1B #1B732D
tetradic
#2D1B73 #731B35 #61731B #1B7359
square
#2D1B73 #731B35 #61731B #1B7359
split-complementary
#2D1B73 #73591B #35731B
monochromatic
#0A0619 #1A0F41 #2D1B73 #4027A5 #5738D0

Accessibility & contrast

On white

13.85
#2D1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1B73
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B73#FFFFFF#000000##FFFFFF
##2D1B731.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#053345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1b73;
/* rgb */ color: rgb(45, 27, 115);
/* oklch */ color: oklch(31.0% 0.141 283.9);
Tailwind
colors: {
  custom: {
    50: '#6f599c',
    500: '#2d1b73',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b73;
$custom-light: #6f599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b73",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 252.273,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31045,
    "c": 0.14093,
    "h": 283.9
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#2D1B73
secondary
#93A842
accent
#E543C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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