#2D1976#2D1976

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

Color values

HEX#2D1976
RGBrgb(45, 25, 118)
HSLhsl(253, 65%, 28%)
HSVhsv(253, 79%, 46%)
CMYKcmyk(61.9%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.19, 36.13, -49.55)
CIE-LCHlch(18.19, 61.32, 306.10°)
OKLaboklab(31.08% 0.0347 -0.1428)
OKLCHoklch(31.08% 0.147 283.7)
XYZxyz(4.6988, 2.5608, 17.3827)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1976 #627619
analogous
#193376 #2D1976 #5B1976
triadic
#2D1976 #762D19 #19762D
tetradic
#2D1976 #761933 #627619 #19765B
square
#2D1976 #761933 #627619 #19765B
split-complementary
#2D1976 #765B19 #337619
monochromatic
#0A0519 #1A0E43 #2D1976 #4024A8 #5735D4

Accessibility & contrast

On white

13.89
#2D1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1976
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1976#FFFFFF#000000##FFFFFF
##2D19761.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1976;
/* rgb */ color: rgb(45, 25, 118);
/* oklch */ color: oklch(31.1% 0.147 283.7);
Tailwind
colors: {
  custom: {
    50: '#70589e',
    500: '#2d1976',
    950: '#000000',
  },
}
SCSS
$custom: #2d1976;
$custom-light: #70589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1976",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 252.903,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31081,
    "c": 0.14695,
    "h": 283.7
  },
  "luminance": 0.02561
}

Semantic roles & 50–950 ramp

primary
#2D1976
secondary
#94AB40
accent
#E840C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1976

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

Preview Lab → · Contrast checker → · Palette generator →

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