#2D1944#2D1944

#2D1944 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.079 H 302.8°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2D1944
RGBrgb(45, 25, 68)
HSLhsl(268, 46%, 18%)
HSVhsv(268, 63%, 27%)
CMYKcmyk(33.8%, 63.2%, 0%, 73.3%)
CIE-LABlab(13.65, 20.34, -23.51)
CIE-LCHlch(13.65, 31.09, 310.87°)
OKLaboklab(26.42% 0.0428 -0.0664)
OKLCHoklch(26.42% 0.079 302.8)
XYZxyz(2.4730, 1.6705, 5.6599)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1944 #304419
analogous
#191A44 #2D1944 #421944
triadic
#2D1944 #442D19 #19442D
tetradic
#2D1944 #44191A #304419 #194442
square
#2D1944 #44191A #304419 #194442
split-complementary
#2D1944 #444219 #1A4419
monochromatic
#0F0816 #0F0917 #2D1944 #4B2971 #683A9D

Accessibility & contrast

On white

15.74
#2D1944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D1944 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1944
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1944#FFFFFF#000000##FFFFFF
##2D19441.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082245
Deuteranopia (green-blind)
#0F2343
Tritanopia (blue-blind)
#29212B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d1944;
/* rgb */ color: rgb(45, 25, 68);
/* oklch */ color: oklch(26.4% 0.079 302.8);
Tailwind
colors: {
  custom: {
    50: '#685678',
    500: '#2d1944',
    950: '#000000',
  },
}
SCSS
$custom: #2d1944;
$custom-light: #685678;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1944",
  "rgb": {
    "r": 45,
    "g": 25,
    "b": 68
  },
  "hsl": {
    "h": 267.907,
    "s": 46.237,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26422,
    "c": 0.07901,
    "h": 302.8
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#2D1944
secondary
#5E7A3E
accent
#D65299
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D1944

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

Preview Lab → · Contrast checker → · Palette generator →

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