#2D1F72#2D1F72

#2D1F72 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.5% C 0.135 H 283.2°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2D1F72
RGBrgb(45, 31, 114)
HSLhsl(250, 57%, 28%)
HSVhsv(250, 73%, 45%)
CMYKcmyk(60.5%, 72.8%, 0%, 55.3%)
CIE-LABlab(19.02, 31.36, -45.60)
CIE-LCHlch(19.02, 55.34, 304.51°)
OKLaboklab(31.55% 0.0308 -0.1313)
OKLCHoklch(31.55% 0.135 283.2)
XYZxyz(4.6085, 2.7525, 16.2048)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F72 #64721F
analogous
#1F3A72 #2D1F72 #561F72
triadic
#2D1F72 #722D1F #1F722D
tetradic
#2D1F72 #721F3A #64721F #1F7256
square
#2D1F72 #721F3A #64721F #1F7256
split-complementary
#2D1F72 #72561F #3A721F
monochromatic
#090718 #1A1242 #2D1F72 #402CA2 #5840CB

Accessibility & contrast

On white

13.54
#2D1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2D1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F72
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F72#FFFFFF#000000##FFFFFF
##2D1F721.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#063546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1f72;
/* rgb */ color: rgb(45, 31, 114);
/* oklch */ color: oklch(31.5% 0.135 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f5c9b',
    500: '#2d1f72',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f72;
$custom-light: #6f5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f72",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 250.12,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31548,
    "c": 0.13485,
    "h": 283.2
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#2D1F72
secondary
#96A647
accent
#E047C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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