#2D1D74#2D1D74

#2D1D74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.140 H 283.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2D1D74
RGBrgb(45, 29, 116)
HSLhsl(251, 60%, 28%)
HSVhsv(251, 75%, 45%)
CMYKcmyk(61.2%, 75%, 0%, 54.5%)
CIE-LABlab(18.79, 33.22, -47.28)
CIE-LCHlch(18.79, 57.78, 305.09°)
OKLaboklab(31.44% 0.0321 -0.1362)
OKLCHoklch(31.44% 0.14 283.3)
XYZxyz(4.6730, 2.6973, 16.7940)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D74 #64741D
analogous
#1D3874 #2D1D74 #581D74
triadic
#2D1D74 #742D1D #1D742D
tetradic
#2D1D74 #741D38 #64741D #1D7458
square
#2D1D74 #741D38 #64741D #1D7458
split-complementary
#2D1D74 #74581D #38741D
monochromatic
#090618 #1A1143 #2D1D74 #4029A5 #583DCE

Accessibility & contrast

On white

13.64
#2D1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D1D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D74
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D74#FFFFFF#000000##FFFFFF
##2D1D741.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#033546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1d74;
/* rgb */ color: rgb(45, 29, 116);
/* oklch */ color: oklch(31.4% 0.140 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f5b9d',
    500: '#2d1d74',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d74;
$custom-light: #6f5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d74",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 251.034,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31441,
    "c": 0.13992,
    "h": 283.3
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#2D1D74
secondary
#96A845
accent
#E345C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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