#2D1A88#2D1A88

#2D1A88 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.168 H 279.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2D1A88
RGBrgb(45, 26, 136)
HSLhsl(250, 68%, 32%)
HSVhsv(250, 81%, 53%)
CMYKcmyk(66.9%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.34, 41.28, -57.44)
CIE-LCHlch(20.34, 70.73, 305.71°)
OKLaboklab(33.17% 0.0288 -0.1658)
OKLCHoklch(33.17% 0.168 279.9)
XYZxyz(5.8941, 3.0738, 23.5705)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A88 #75881A
analogous
#1A3E88 #2D1A88 #641A88
triadic
#2D1A88 #882D1A #1A882D
tetradic
#2D1A88 #881A3E #75881A #1A8864
square
#2D1A88 #881A3E #75881A #1A8864
split-complementary
#2D1A88 #88641A #3E881A
monochromatic
#0B0621 #1C1055 #2D1A88 #3E24BB #5C42DB

Accessibility & contrast

On white

13.00
#2D1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A88
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A88#FFFFFF#000000##FFFFFF
##2D1A881.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1a88;
/* rgb */ color: rgb(45, 26, 136);
/* oklch */ color: oklch(33.2% 0.168 279.9);
Tailwind
colors: {
  custom: {
    50: '#745aac',
    500: '#2d1a88',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a88;
$custom-light: #745aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a88",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 250.364,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.16832,
    "h": 279.9
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#2D1A88
secondary
#A6BB43
accent
#EB3DCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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