#2D1A69#2D1A69

#2D1A69 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.129 H 286.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2D1A69
RGBrgb(45, 26, 105)
HSLhsl(254, 60%, 26%)
HSVhsv(254, 75%, 41%)
CMYKcmyk(57.1%, 75.2%, 0%, 58.8%)
CIE-LABlab(17.07, 31.40, -42.96)
CIE-LCHlch(17.07, 53.21, 306.16°)
OKLaboklab(29.88% 0.0372 -0.1235)
OKLCHoklch(29.88% 0.129 286.8)
XYZxyz(4.0006, 2.3164, 13.5982)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1A69 #56691A
analogous
#1A2F69 #2D1A69 #541A69
triadic
#2D1A69 #692D1A #1A692D
tetradic
#2D1A69 #691A2F #56691A #1A6954
square
#2D1A69 #691A2F #56691A #1A6954
split-complementary
#2D1A69 #69541A #2F691A
monochromatic
#0B0619 #180E38 #2D1A69 #42269A #5732CB

Accessibility & contrast

On white

14.35
#2D1A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D1A69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1A69
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1A69#FFFFFF#000000##FFFFFF
##2D1A691.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6B
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#142F3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1a69;
/* rgb */ color: rgb(45, 26, 105);
/* oklch */ color: oklch(29.9% 0.129 286.8);
Tailwind
colors: {
  custom: {
    50: '#6d5895',
    500: '#2d1a69',
    950: '#000000',
  },
}
SCSS
$custom: #2d1a69;
$custom-light: #6d5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1a69",
  "rgb": {
    "r": 45,
    "g": 26,
    "b": 105
  },
  "hsl": {
    "h": 254.43,
    "s": 60.305,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29884,
    "c": 0.12901,
    "h": 286.8
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#2D1A69
secondary
#889E40
accent
#E344BD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1A69

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

Preview Lab → · Contrast checker → · Palette generator →

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