#2D1B74#2D1B74

#2D1B74 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.142 H 283.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2D1B74
RGBrgb(45, 27, 116)
HSLhsl(252, 62%, 28%)
HSVhsv(252, 77%, 45%)
CMYKcmyk(61.2%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.38, 34.38, -47.96)
CIE-LCHlch(18.38, 59.00, 305.64°)
OKLaboklab(31.15% 0.0337 -0.1382)
OKLCHoklch(31.15% 0.142 283.7)
XYZxyz(4.6255, 2.6024, 16.7782)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B74 #62741B
analogous
#1B3574 #2D1B74 #591B74
triadic
#2D1B74 #742D1B #1B742D
tetradic
#2D1B74 #741B35 #62741B #1B7459
square
#2D1B74 #741B35 #62741B #1B7459
split-complementary
#2D1B74 #74591B #35741B
monochromatic
#0A0619 #1A0F42 #2D1B74 #4027A6 #5739D1

Accessibility & contrast

On white

13.81
#2D1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B74
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B74#FFFFFF#000000##FFFFFF
##2D1B741.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#033446
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1b74;
/* rgb */ color: rgb(45, 27, 116);
/* oklch */ color: oklch(31.1% 0.142 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f5a9d',
    500: '#2d1b74',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b74;
$custom-light: #6f5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b74",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 252.135,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31148,
    "c": 0.14222,
    "h": 283.7
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#2D1B74
secondary
#94A942
accent
#E542C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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