#2D1666#2D1666

#2D1666 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.130 H 288.7°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2D1666
RGBrgb(45, 22, 102)
HSLhsl(257, 65%, 24%)
HSVhsv(257, 78%, 40%)
CMYKcmyk(55.9%, 78.4%, 0%, 60%)
CIE-LABlab(15.96, 32.72, -42.81)
CIE-LCHlch(15.96, 53.88, 307.40°)
OKLaboklab(29.01% 0.0416 -0.1231)
OKLCHoklch(29.01% 0.13 288.7)
XYZxyz(3.7667, 2.0908, 12.7729)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1666 #4F6616
analogous
#162766 #2D1666 #551666
triadic
#2D1666 #662D16 #16662D
tetradic
#2D1666 #661627 #4F6616 #166655
square
#2D1666 #661627 #4F6616 #166655
split-complementary
#2D1666 #665516 #276616
monochromatic
#0B0519 #170B34 #2D1666 #432198 #592CCB

Accessibility & contrast

On white

14.81
#2D1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1666
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1666#FFFFFF#000000##FFFFFF
##2D16661.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#172C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1666;
/* rgb */ color: rgb(45, 22, 102);
/* oklch */ color: oklch(29.0% 0.130 288.7);
Tailwind
colors: {
  custom: {
    50: '#6d5692',
    500: '#2d1666',
    950: '#000000',
  },
}
SCSS
$custom: #2d1666;
$custom-light: #6d5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1666",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 257.25,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29007,
    "c": 0.12991,
    "h": 288.7
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#2D1666
secondary
#819D3B
accent
#E840B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1666

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

Preview Lab → · Contrast checker → · Palette generator →

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