#2D1372#2D1372

#2D1372 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.148 H 285.8°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2D1372
RGBrgb(45, 19, 114)
HSLhsl(256, 71%, 26%)
HSVhsv(256, 83%, 45%)
CMYKcmyk(60.5%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.69, 37.96, -49.44)
CIE-LCHlch(16.69, 62.33, 307.52°)
OKLaboklab(29.9% 0.0402 -0.1424)
OKLCHoklch(29.9% 0.148 285.8)
XYZxyz(4.3514, 2.2383, 16.1191)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1372 #587213
analogous
#132872 #2D1372 #5C1372
triadic
#2D1372 #722D13 #13722D
tetradic
#2D1372 #721328 #587213 #13725C
square
#2D1372 #721328 #587213 #13725C
split-complementary
#2D1372 #725C13 #287213
monochromatic
#0A041A #180A3E #2D1372 #421CA6 #5725DB

Accessibility & contrast

On white

14.50
#2D1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1372
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1372#FFFFFF#000000##FFFFFF
##2D13721.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#082F43
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1372;
/* rgb */ color: rgb(45, 19, 114);
/* oklch */ color: oklch(29.9% 0.148 285.8);
Tailwind
colors: {
  custom: {
    50: '#70559c',
    500: '#2d1372',
    950: '#000000',
  },
}
SCSS
$custom: #2d1372;
$custom-light: #70559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1372",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 256.421,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29904,
    "c": 0.14798,
    "h": 285.8
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#2D1372
secondary
#8AA938
accent
#EE3ABD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1372

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

Preview Lab → · Contrast checker → · Palette generator →

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