#2D1466#2D1466

#2D1466 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.132 H 289.2°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#2D1466
RGBrgb(45, 20, 102)
HSLhsl(258, 67%, 24%)
HSVhsv(258, 80%, 40%)
CMYKcmyk(55.9%, 80.4%, 0%, 60%)
CIE-LABlab(15.58, 33.80, -43.43)
CIE-LCHlch(15.58, 55.03, 307.89°)
OKLaboklab(28.74% 0.0434 -0.1249)
OKLCHoklch(28.74% 0.132 289.2)
XYZxyz(3.7299, 2.0173, 12.7606)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1466 #4D6614
analogous
#142466 #2D1466 #561466
triadic
#2D1466 #662D14 #14662D
tetradic
#2D1466 #661424 #4D6614 #146656
square
#2D1466 #661424 #4D6614 #146656
split-complementary
#2D1466 #665614 #246614
monochromatic
#0B051A #160A33 #2D1466 #441E99 #5A28CC

Accessibility & contrast

On white

14.96
#2D1466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D1466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1466
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1466#FFFFFF#000000##FFFFFF
##2D14661.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#172B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1466;
/* rgb */ color: rgb(45, 20, 102);
/* oklch */ color: oklch(28.7% 0.132 289.2);
Tailwind
colors: {
  custom: {
    50: '#6d5592',
    500: '#2d1466',
    950: '#000000',
  },
}
SCSS
$custom: #2d1466;
$custom-light: #6d5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1466",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 258.293,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28741,
    "c": 0.13218,
    "h": 289.2
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#2D1466
secondary
#7F9D39
accent
#EA3EB6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1466

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

Preview Lab → · Contrast checker → · Palette generator →

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