#2D1F71#2D1F71

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

Color values

HEX#2D1F71
RGBrgb(45, 31, 113)
HSLhsl(250, 57%, 28%)
HSVhsv(250, 73%, 44%)
CMYKcmyk(60.2%, 72.6%, 0%, 55.7%)
CIE-LABlab(18.93, 31.02, -45.11)
CIE-LCHlch(18.93, 54.75, 304.52°)
OKLaboklab(31.45% 0.031 -0.1299)
OKLCHoklch(31.45% 0.134 283.4)
XYZxyz(4.5519, 2.7298, 15.9066)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F71 #63711F
analogous
#1F3A71 #2D1F71 #561F71
triadic
#2D1F71 #712D1F #1F712D
tetradic
#2D1F71 #711F3A #63711F #1F7156
square
#2D1F71 #711F3A #63711F #1F7156
split-complementary
#2D1F71 #71561F #3A711F
monochromatic
#0A0718 #1A1241 #2D1F71 #402CA1 #5840CB

Accessibility & contrast

On white

13.58
#2D1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1F71
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F71#FFFFFF#000000##FFFFFF
##2D1F711.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#083545
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d1f71;
/* rgb */ color: rgb(45, 31, 113);
/* oklch */ color: oklch(31.4% 0.134 283.4);
Tailwind
colors: {
  custom: {
    50: '#6e5c9b',
    500: '#2d1f71',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f71;
$custom-light: #6e5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f71",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 250.244,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3145,
    "c": 0.1335,
    "h": 283.4
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#2D1F71
secondary
#95A547
accent
#E048C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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