#2D1885#2D1885

#2D1885 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.166 H 280.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2D1885
RGBrgb(45, 24, 133)
HSLhsl(252, 69%, 31%)
HSVhsv(252, 82%, 52%)
CMYKcmyk(66.2%, 82%, 0%, 47.8%)
CIE-LABlab(19.66, 41.34, -56.68)
CIE-LCHlch(19.66, 70.15, 306.11°)
OKLaboklab(32.59% 0.0309 -0.1636)
OKLCHoklch(32.59% 0.166 280.7)
XYZxyz(5.6411, 2.9042, 22.4490)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1885 #708518
analogous
#183985 #2D1885 #631885
triadic
#2D1885 #852D18 #18852D
tetradic
#2D1885 #851839 #708518 #188563
square
#2D1885 #851839 #708518 #188563
split-complementary
#2D1885 #856318 #398518
monochromatic
#0A051D #1B0F51 #2D1885 #3F21B9 #5A3CDC

Accessibility & contrast

On white

13.28
#2D1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1885
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1885#FFFFFF#000000##FFFFFF
##2D18851.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1885;
/* rgb */ color: rgb(45, 24, 133);
/* oklch */ color: oklch(32.6% 0.166 280.7);
Tailwind
colors: {
  custom: {
    50: '#7359aa',
    500: '#2d1885',
    950: '#000000',
  },
}
SCSS
$custom: #2d1885;
$custom-light: #7359aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1885",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 251.56,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32594,
    "c": 0.16647,
    "h": 280.7
  },
  "luminance": 0.02905
}

Semantic roles & 50–950 ramp

primary
#2D1885
secondary
#A2B940
accent
#EC3CCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1885

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

Preview Lab → · Contrast checker → · Palette generator →

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