#2D1A80#2D1A80

#2D1A80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.158 H 281.4°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2D1A80
RGBrgb(45, 26, 128)
HSLhsl(251, 66%, 30%)
HSVhsv(251, 80%, 50%)
CMYKcmyk(64.8%, 79.7%, 0%, 49.8%)
CIE-LABlab(19.45, 38.77, -53.85)
CIE-LCHlch(19.45, 66.35, 305.75°)
OKLaboklab(32.29% 0.0312 -0.1554)
OKLCHoklch(32.29% 0.158 281.4)
XYZxyz(5.3466, 2.8548, 20.6872)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A80 #6D801A
analogous
#1A3A80 #2D1A80 #601A80
triadic
#2D1A80 #802D1A #1A802D
tetradic
#2D1A80 #801A3A #6D801A #1A8060
square
#2D1A80 #801A3A #6D801A #1A8060
split-complementary
#2D1A80 #80601A #3A801A
monochromatic
#09051A #1B104D #2D1A80 #3F24B3 #5A3DD8

Accessibility & contrast

On white

13.37
#2D1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A80
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A80#FFFFFF#000000##FFFFFF
##2D1A801.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1a80;
/* rgb */ color: rgb(45, 26, 128);
/* oklch */ color: oklch(32.3% 0.158 281.4);
Tailwind
colors: {
  custom: {
    50: '#725aa6',
    500: '#2d1a80',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a80;
$custom-light: #725aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a80",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 251.176,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32287,
    "c": 0.15847,
    "h": 281.4
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#2D1A80
secondary
#9FB442
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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