#2D1A74#2D1A74

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

Color values

HEX#2D1A74
RGBrgb(45, 26, 116)
HSLhsl(253, 63%, 28%)
HSVhsv(253, 78%, 45%)
CMYKcmyk(61.2%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.18, 34.94, -48.28)
CIE-LCHlch(18.18, 59.60, 305.89°)
OKLaboklab(31.01% 0.0345 -0.1391)
OKLCHoklch(31.01% 0.143 283.9)
XYZxyz(4.6030, 2.5573, 16.7707)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A74 #61741A
analogous
#1A3474 #2D1A74 #5A1A74
triadic
#2D1A74 #742D1A #1A742D
tetradic
#2D1A74 #741A34 #61741A #1A745A
square
#2D1A74 #741A34 #61741A #1A745A
split-complementary
#2D1A74 #745A1A #34741A
monochromatic
#0A0619 #1A0F42 #2D1A74 #4025A6 #5736D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D1A74#FFFFFF#000000##FFFFFF
##2D1A741.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)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#033345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1a74;
/* rgb */ color: rgb(45, 26, 116);
/* oklch */ color: oklch(31.0% 0.143 283.9);
Tailwind
colors: {
  custom: {
    50: '#6f599d',
    500: '#2d1a74',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a74;
$custom-light: #6f599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a74",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 252.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31007,
    "c": 0.14334,
    "h": 283.9
  },
  "luminance": 0.02558
}

Semantic roles & 50–950 ramp

primary
#2D1A74
secondary
#93A941
accent
#E641C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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