#2D1667#2D1667

#2D1667 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.131 H 288.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2D1667
RGBrgb(45, 22, 103)
HSLhsl(257, 65%, 25%)
HSVhsv(257, 79%, 40%)
CMYKcmyk(56.3%, 78.6%, 0%, 59.6%)
CIE-LABlab(16.06, 33.04, -43.30)
CIE-LCHlch(16.06, 54.46, 307.34°)
OKLaboklab(29.11% 0.0414 -0.1245)
OKLCHoklch(29.11% 0.131 288.4)
XYZxyz(3.8166, 2.1108, 13.0357)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1667 #506716
analogous
#162867 #2D1667 #561667
triadic
#2D1667 #672D16 #16672D
tetradic
#2D1667 #671628 #506716 #166756
square
#2D1667 #671628 #506716 #166756
split-complementary
#2D1667 #675616 #286716
monochromatic
#0B0519 #170B35 #2D1667 #432199 #592CCC

Accessibility & contrast

On white

14.77
#2D1667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1667
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1667#FFFFFF#000000##FFFFFF
##2D16671.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#162C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1667;
/* rgb */ color: rgb(45, 22, 103);
/* oklch */ color: oklch(29.1% 0.131 288.4);
Tailwind
colors: {
  custom: {
    50: '#6d5693',
    500: '#2d1667',
    950: '#000000',
  },
}
SCSS
$custom: #2d1667;
$custom-light: #6d5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1667",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 257.037,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29109,
    "c": 0.13119,
    "h": 288.4
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

primary
#2D1667
secondary
#829E3B
accent
#E840B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1667

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

Preview Lab → · Contrast checker → · Palette generator →

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