#2D1390#2D1390

#2D1390 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.183 H 279.2°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1390
RGBrgb(45, 19, 144)
HSLhsl(252, 77%, 32%)
HSVhsv(252, 87%, 56%)
CMYKcmyk(68.7%, 86.8%, 0%, 43.5%)
CIE-LABlab(20.19, 46.87, -62.68)
CIE-LCHlch(20.19, 78.26, 306.79°)
OKLaboklab(33.34% 0.0295 -0.181)
OKLCHoklch(33.34% 0.183 279.2)
XYZxyz(6.3475, 3.0367, 26.6318)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1390 #769013
analogous
#133890 #2D1390 #6C1390
triadic
#2D1390 #902D13 #13902D
tetradic
#2D1390 #901338 #769013 #13906C
square
#2D1390 #901338 #769013 #13906C
split-complementary
#2D1390 #906C13 #389013
monochromatic
#0B0524 #1C0C5A #2D1390 #3E1AC6 #5C39E5

Accessibility & contrast

On white

13.06
#2D1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1390
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1390#FFFFFF#000000##FFFFFF
##2D13901.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1390;
/* rgb */ color: rgb(45, 19, 144);
/* oklch */ color: oklch(33.3% 0.183 279.2);
Tailwind
colors: {
  custom: {
    50: '#7657b2',
    500: '#2d1390',
    950: '#000000',
  },
}
SCSS
$custom: #2d1390;
$custom-light: #7657b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1390",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 252.48,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3334,
    "c": 0.18334,
    "h": 279.2
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#2D1390
secondary
#A7C43B
accent
#F335CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2D1390

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

Preview Lab → · Contrast checker → · Palette generator →

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