#2D1A76#2D1A76

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

Color values

HEX#2D1A76
RGBrgb(45, 26, 118)
HSLhsl(252, 64%, 28%)
HSVhsv(252, 78%, 46%)
CMYKcmyk(61.9%, 78%, 0%, 53.7%)
CIE-LABlab(18.38, 35.58, -49.23)
CIE-LCHlch(18.38, 60.74, 305.86°)
OKLaboklab(31.22% 0.034 -0.1419)
OKLCHoklch(31.22% 0.146 283.5)
XYZxyz(4.7206, 2.6044, 17.3900)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A76 #63761A
analogous
#1A3576 #2D1A76 #5B1A76
triadic
#2D1A76 #762D1A #1A762D
tetradic
#2D1A76 #761A35 #63761A #1A765B
square
#2D1A76 #761A35 #63761A #1A765B
split-complementary
#2D1A76 #765B1A #35761A
monochromatic
#0A0619 #1A0F44 #2D1A76 #4025A8 #5837D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1A76#FFFFFF#000000##FFFFFF
##2D1A761.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)
#003079
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d1a76;
/* rgb */ color: rgb(45, 26, 118);
/* oklch */ color: oklch(31.2% 0.146 283.5);
Tailwind
colors: {
  custom: {
    50: '#70599e',
    500: '#2d1a76',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a76;
$custom-light: #70599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a76",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 252.391,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.14589,
    "h": 283.5
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#2D1A76
secondary
#95AB41
accent
#E741C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1A76

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

Preview Lab → · Contrast checker → · Palette generator →

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