#2D1A71#2D1A71

#2D1A71 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.139 H 284.7°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2D1A71
RGBrgb(45, 26, 113)
HSLhsl(253, 63%, 27%)
HSVhsv(253, 77%, 44%)
CMYKcmyk(60.2%, 77%, 0%, 55.7%)
CIE-LABlab(17.87, 33.98, -46.85)
CIE-LCHlch(17.87, 57.88, 305.95°)
OKLaboklab(30.7% 0.0353 -0.1349)
OKLCHoklch(30.7% 0.139 284.7)
XYZxyz(4.4313, 2.4887, 15.8664)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A71 #5E711A
analogous
#1A3371 #2D1A71 #581A71
triadic
#2D1A71 #712D1A #1A712D
tetradic
#2D1A71 #711A33 #5E711A #1A7158
square
#2D1A71 #711A33 #5E711A #1A7158
split-complementary
#2D1A71 #71581A #33711A
monochromatic
#0A0619 #190F3F #2D1A71 #4125A3 #5735D0

Accessibility & contrast

On white

14.02
#2D1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2D1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A71
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A71#FFFFFF#000000##FFFFFF
##2D1A711.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#093244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d1a71;
/* rgb */ color: rgb(45, 26, 113);
/* oklch */ color: oklch(30.7% 0.139 284.7);
Tailwind
colors: {
  custom: {
    50: '#6f599b',
    500: '#2d1a71',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a71;
$custom-light: #6f599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a71",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 253.103,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30696,
    "c": 0.13947,
    "h": 284.7
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#2D1A71
secondary
#90A641
accent
#E642C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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