#2D1D66#2D1D66

#2D1D66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.121 H 286.7°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2D1D66
RGBrgb(45, 29, 102)
HSLhsl(253, 56%, 26%)
HSVhsv(253, 72%, 40%)
CMYKcmyk(55.9%, 71.6%, 0%, 60%)
CIE-LABlab(17.44, 28.60, -40.38)
CIE-LCHlch(17.44, 49.48, 305.31°)
OKLaboklab(30.06% 0.0349 -0.116)
OKLCHoklch(30.06% 0.121 286.7)
XYZxyz(3.9191, 2.3957, 12.8237)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D66 #56661D
analogous
#1D3166 #2D1D66 #511D66
triadic
#2D1D66 #662D1D #1D662D
tetradic
#2D1D66 #661D31 #56661D #1D6651
square
#2D1D66 #661D31 #56661D #1D6651
split-complementary
#2D1D66 #66511D #31661D
monochromatic
#0B0718 #180F36 #2D1D66 #422B96 #5738C5

Accessibility & contrast

On white

14.20
#2D1D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D1D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D66
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D66#FFFFFF#000000##FFFFFF
##2D1D661.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#16303F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d1d66;
/* rgb */ color: rgb(45, 29, 102);
/* oklch */ color: oklch(30.1% 0.121 286.7);
Tailwind
colors: {
  custom: {
    50: '#6c5a92',
    500: '#2d1d66',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d66;
$custom-light: #6c5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d66",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 102
  },
  "hsl": {
    "h": 253.151,
    "s": 55.725,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30063,
    "c": 0.12109,
    "h": 286.7
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#2D1D66
secondary
#889B44
accent
#DF49BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D1D66

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

Preview Lab → · Contrast checker → · Palette generator →

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