#2D1E5D#2D1E5D

#2D1E5D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.107 H 289.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2D1E5D
RGBrgb(45, 30, 93)
HSLhsl(254, 51%, 24%)
HSVhsv(254, 68%, 36%)
CMYKcmyk(51.6%, 67.7%, 0%, 63.5%)
CIE-LABlab(16.88, 24.98, -35.34)
CIE-LCHlch(16.88, 43.28, 305.25°)
OKLaboklab(29.41% 0.0349 -0.1012)
OKLCHoklch(29.41% 0.107 289)
XYZxyz(3.5217, 2.2766, 10.6077)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E5D #4E5D1E
analogous
#1E2F5D #2D1E5D #4D1E5D
triadic
#2D1E5D #5D2D1E #1E5D2D
tetradic
#2D1E5D #5D1E2F #4E5D1E #1E5D4D
square
#2D1E5D #5D1E2F #4E5D1E #1E5D4D
split-complementary
#2D1E5D #5D4D1E #2F5D1E
monochromatic
#0B0717 #170F2F #2D1E5D #432D8B #5A3CBA

Accessibility & contrast

On white

14.43
#2D1E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1E5D
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E5D#FFFFFF#000000##FFFFFF
##2D1E5D1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#1D2D3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d1e5d;
/* rgb */ color: rgb(45, 30, 93);
/* oklch */ color: oklch(29.4% 0.107 289.0);
Tailwind
colors: {
  custom: {
    50: '#6b5a8b',
    500: '#2d1e5d',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e5d;
$custom-light: #6b5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e5d",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 254.286,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29406,
    "c": 0.10703,
    "h": 289
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#2D1E5D
secondary
#809245
accent
#DB4DB9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2D1E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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