#2D1375#2D1375

#2D1375 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.152 H 285.0°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#2D1375
RGBrgb(45, 19, 117)
HSLhsl(256, 72%, 27%)
HSVhsv(256, 84%, 46%)
CMYKcmyk(61.5%, 83.8%, 0%, 54.1%)
CIE-LABlab(17.03, 38.86, -50.82)
CIE-LCHlch(17.03, 63.98, 307.40°)
OKLaboklab(30.24% 0.0392 -0.1465)
OKLCHoklch(30.24% 0.152 285)
XYZxyz(4.5250, 2.3077, 17.0332)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1375 #5B7513
analogous
#132A75 #2D1375 #5E1375
triadic
#2D1375 #752D13 #13752D
tetradic
#2D1375 #75132A #5B7513 #13755E
square
#2D1375 #75132A #5B7513 #13755E
split-complementary
#2D1375 #755E13 #2A7513
monochromatic
#0A041A #190A40 #2D1375 #411CAA #5727DC

Accessibility & contrast

On white

14.37
#2D1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1375
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1375#FFFFFF#000000##FFFFFF
##2D13751.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#023145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1375;
/* rgb */ color: rgb(45, 19, 117);
/* oklch */ color: oklch(30.2% 0.152 285.0);
Tailwind
colors: {
  custom: {
    50: '#70559e',
    500: '#2d1375',
    950: '#000000',
  },
}
SCSS
$custom: #2d1375;
$custom-light: #70559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1375",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 255.918,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30236,
    "c": 0.15161,
    "h": 285
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#2D1375
secondary
#8DAB38
accent
#EF39BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1375

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

Preview Lab → · Contrast checker → · Palette generator →

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