#2D1664#2D1664

#2D1664 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.127 H 289.3°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2D1664
RGBrgb(45, 22, 100)
HSLhsl(258, 64%, 24%)
HSVhsv(258, 78%, 39%)
CMYKcmyk(55%, 78%, 0%, 60.8%)
CIE-LABlab(15.76, 32.10, -41.82)
CIE-LCHlch(15.76, 52.72, 307.51°)
OKLaboklab(28.8% 0.0422 -0.1201)
OKLCHoklch(28.8% 0.127 289.3)
XYZxyz(3.6687, 2.0516, 12.2568)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1664 #4D6416
analogous
#162664 #2D1664 #541664
triadic
#2D1664 #642D16 #16642D
tetradic
#2D1664 #641626 #4D6416 #166454
square
#2D1664 #641626 #4D6416 #166454
split-complementary
#2D1664 #645416 #266416
monochromatic
#0B0619 #160B32 #2D1664 #442196 #5A2CC8

Accessibility & contrast

On white

14.89
#2D1664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2D1664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1664
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1664#FFFFFF#000000##FFFFFF
##2D16641.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#192B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d1664;
/* rgb */ color: rgb(45, 22, 100);
/* oklch */ color: oklch(28.8% 0.127 289.3);
Tailwind
colors: {
  custom: {
    50: '#6d5691',
    500: '#2d1664',
    950: '#000000',
  },
}
SCSS
$custom: #2d1664;
$custom-light: #6d5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1664",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 257.692,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28804,
    "c": 0.12734,
    "h": 289.3
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#2D1664
secondary
#7F9B3B
accent
#E741B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2D1664

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

Preview Lab → · Contrast checker → · Palette generator →

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