#2D1883#2D1883

#2D1883 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.164 H 281.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2D1883
RGBrgb(45, 24, 131)
HSLhsl(252, 69%, 30%)
HSVhsv(252, 82%, 51%)
CMYKcmyk(65.6%, 81.7%, 0%, 48.6%)
CIE-LABlab(19.43, 40.73, -55.79)
CIE-LCHlch(19.43, 69.07, 306.13°)
OKLaboklab(32.37% 0.0315 -0.161)
OKLCHoklch(32.37% 0.164 281.1)
XYZxyz(5.5043, 2.8494, 21.7283)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1883 #6E8318
analogous
#183883 #2D1883 #621883
triadic
#2D1883 #832D18 #18832D
tetradic
#2D1883 #831838 #6E8318 #188362
square
#2D1883 #831838 #6E8318 #188362
split-complementary
#2D1883 #836218 #388318
monochromatic
#09051C #1B0F4F #2D1883 #3F21B7 #5A3ADB

Accessibility & contrast

On white

13.38
#2D1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D1883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1883
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1883#FFFFFF#000000##FFFFFF
##2D18831.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1883;
/* rgb */ color: rgb(45, 24, 131);
/* oklch */ color: oklch(32.4% 0.164 281.1);
Tailwind
colors: {
  custom: {
    50: '#7359a8',
    500: '#2d1883',
    950: '#000000',
  },
}
SCSS
$custom: #2d1883;
$custom-light: #7359a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1883",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 251.776,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32371,
    "c": 0.16404,
    "h": 281.1
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#2D1883
secondary
#A0B740
accent
#EC3CC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1883

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

Preview Lab → · Contrast checker → · Palette generator →

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