#2D1152#2D1152

#2D1152 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.111 H 297.9°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#2D1152
RGBrgb(45, 17, 82)
HSLhsl(266, 66%, 19%)
HSVhsv(266, 79%, 32%)
CMYKcmyk(45.1%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.03, 29.37, -34.18)
CIE-LCHlch(13.03, 45.07, 310.67°)
OKLaboklab(26.34% 0.0518 -0.0977)
OKLCHoklch(26.34% 0.111 297.9)
XYZxyz(2.8052, 1.5679, 8.1359)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1152 #365211
analogous
#111652 #2D1152 #4E1152
triadic
#2D1152 #522D11 #11522D
tetradic
#2D1152 #521116 #365211 #11524E
square
#2D1152 #521116 #365211 #11524E
split-complementary
#2D1152 #524E11 #165211
monochromatic
#0E0519 #11061F #2D1152 #491C85 #6526B7

Accessibility & contrast

On white

15.99
#2D1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1152
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1152#FFFFFF#000000##FFFFFF
##2D11521.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#242230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d1152;
/* rgb */ color: rgb(45, 17, 82);
/* oklch */ color: oklch(26.3% 0.111 297.9);
Tailwind
colors: {
  custom: {
    50: '#6a5283',
    500: '#2d1152',
    950: '#000000',
  },
}
SCSS
$custom: #2d1152;
$custom-light: #6a5283;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1152",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 265.846,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26341,
    "c": 0.11061,
    "h": 297.9
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#2D1152
secondary
#658B34
accent
#E93FA0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1152

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

Preview Lab → · Contrast checker → · Palette generator →

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