#2D1790#2D1790

#2D1790 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.180 H 278.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2D1790
RGBrgb(45, 23, 144)
HSLhsl(251, 72%, 33%)
HSVhsv(251, 84%, 56%)
CMYKcmyk(68.7%, 84%, 0%, 43.5%)
CIE-LABlab(20.77, 45.17, -61.73)
CIE-LCHlch(20.77, 76.49, 306.19°)
OKLaboklab(33.73% 0.0278 -0.1783)
OKLCHoklch(33.73% 0.18 278.9)
XYZxyz(6.4210, 3.1838, 26.6563)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1790 #7A9017
analogous
#173E90 #2D1790 #691790
triadic
#2D1790 #902D17 #17902D
tetradic
#2D1790 #90173E #7A9017 #179069
square
#2D1790 #90173E #7A9017 #179069
split-complementary
#2D1790 #906917 #3E9017
monochromatic
#0C0626 #1D0F5B #2D1790 #3D1FC5 #5E41E1

Accessibility & contrast

On white

12.83
#2D1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1790
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1790#FFFFFF#000000##FFFFFF
##2D17901.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d1790;
/* rgb */ color: rgb(45, 23, 144);
/* oklch */ color: oklch(33.7% 0.180 278.9);
Tailwind
colors: {
  custom: {
    50: '#7659b2',
    500: '#2d1790',
    950: '#000000',
  },
}
SCSS
$custom: #2d1790;
$custom-light: #7659b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1790",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 250.909,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33734,
    "c": 0.18042,
    "h": 278.9
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#2D1790
secondary
#AAC142
accent
#EF39CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1790

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

Preview Lab → · Contrast checker → · Palette generator →

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