#2D1168#2D1168

#2D1168 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 289.1°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1168
RGBrgb(45, 17, 104)
HSLhsl(259, 72%, 24%)
HSVhsv(259, 84%, 41%)
CMYKcmyk(56.7%, 83.7%, 0%, 59.2%)
CIE-LABlab(15.27, 35.91, -45.26)
CIE-LCHlch(15.27, 57.78, 308.43°)
OKLaboklab(28.59% 0.0451 -0.1302)
OKLCHoklch(28.59% 0.138 289.1)
XYZxyz(3.7806, 1.9581, 13.2728)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1168 #4C6811
analogous
#112068 #2D1168 #581168
triadic
#2D1168 #682D11 #11682D
tetradic
#2D1168 #681120 #4C6811 #116858
square
#2D1168 #681120 #4C6811 #116858
split-complementary
#2D1168 #685811 #206811
monochromatic
#0B041A #160833 #2D1168 #441A9D #5B22D1

Accessibility & contrast

On white

15.09
#2D1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1168
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1168#FFFFFF#000000##FFFFFF
##2D11681.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#162A3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1168;
/* rgb */ color: rgb(45, 17, 104);
/* oklch */ color: oklch(28.6% 0.138 289.1);
Tailwind
colors: {
  custom: {
    50: '#6e5394',
    500: '#2d1168',
    950: '#000000',
  },
}
SCSS
$custom: #2d1168;
$custom-light: #6e5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1168",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 259.31,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28587,
    "c": 0.13778,
    "h": 289.1
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#2D1168
secondary
#7DA035
accent
#EF39B4
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1168

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

Preview Lab → · Contrast checker → · Palette generator →

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