#2D1668#2D1668

#2D1668 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.132 H 288.1°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2D1668
RGBrgb(45, 22, 104)
HSLhsl(257, 65%, 25%)
HSVhsv(257, 79%, 41%)
CMYKcmyk(56.7%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.16, 33.35, -43.79)
CIE-LCHlch(16.16, 55.04, 307.29°)
OKLaboklab(29.21% 0.0411 -0.1259)
OKLCHoklch(29.21% 0.132 288.1)
XYZxyz(3.8671, 2.1310, 13.3016)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1668 #516816
analogous
#162868 #2D1668 #561668
triadic
#2D1668 #682D16 #16682D
tetradic
#2D1668 #681628 #516816 #166856
square
#2D1668 #681628 #516816 #166856
split-complementary
#2D1668 #685616 #286816
monochromatic
#0B0519 #170B35 #2D1668 #43219B #592BCD

Accessibility & contrast

On white

14.72
#2D1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1668
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1668#FFFFFF#000000##FFFFFF
##2D16681.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#152D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d1668;
/* rgb */ color: rgb(45, 22, 104);
/* oklch */ color: oklch(29.2% 0.132 288.1);
Tailwind
colors: {
  custom: {
    50: '#6d5694',
    500: '#2d1668',
    950: '#000000',
  },
}
SCSS
$custom: #2d1668;
$custom-light: #6d5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1668",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 256.829,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29212,
    "c": 0.13246,
    "h": 288.1
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#2D1668
secondary
#839F3B
accent
#E840B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1668

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

Preview Lab → · Contrast checker → · Palette generator →

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