#2D1768#2D1768

#2D1768 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.131 H 287.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2D1768
RGBrgb(45, 23, 104)
HSLhsl(256, 64%, 25%)
HSVhsv(256, 78%, 41%)
CMYKcmyk(56.7%, 77.9%, 0%, 59.2%)
CIE-LABlab(16.36, 32.79, -43.47)
CIE-LCHlch(16.36, 54.45, 307.03°)
OKLaboklab(29.35% 0.0402 -0.125)
OKLCHoklch(29.35% 0.131 287.8)
XYZxyz(3.8865, 2.1700, 13.3081)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1768 #526817
analogous
#172A68 #2D1768 #551768
triadic
#2D1768 #682D17 #17682D
tetradic
#2D1768 #68172A #526817 #176855
square
#2D1768 #68172A #526817 #176855
split-complementary
#2D1768 #685517 #2A6817
monochromatic
#0B0619 #170C36 #2D1768 #43229A #582DCC

Accessibility & contrast

On white

14.64
#2D1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1768
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1768#FFFFFF#000000##FFFFFF
##2D17681.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1768;
/* rgb */ color: rgb(45, 23, 104);
/* oklch */ color: oklch(29.3% 0.131 287.8);
Tailwind
colors: {
  custom: {
    50: '#6d5694',
    500: '#2d1768',
    950: '#000000',
  },
}
SCSS
$custom: #2d1768;
$custom-light: #6d5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1768",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 256.296,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2935,
    "c": 0.13131,
    "h": 287.8
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#2D1768
secondary
#849E3D
accent
#E741BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D1768

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

Preview Lab → · Contrast checker → · Palette generator →

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