#2E1F71#2E1F71

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

Color values

HEX#2E1F71
RGBrgb(46, 31, 113)
HSLhsl(251, 57%, 28%)
HSVhsv(251, 73%, 44%)
CMYKcmyk(59.3%, 72.6%, 0%, 55.7%)
CIE-LABlab(19.03, 31.19, -44.95)
CIE-LCHlch(19.03, 54.71, 304.76°)
OKLaboklab(31.54% 0.0325 -0.1293)
OKLCHoklch(31.54% 0.133 284.1)
XYZxyz(4.5964, 2.7528, 15.9087)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F71 #62711F
analogous
#1F3971 #2E1F71 #571F71
triadic
#2E1F71 #712E1F #1F712E
tetradic
#2E1F71 #711F39 #62711F #1F7157
square
#2E1F71 #711F39 #62711F #1F7157
split-complementary
#2E1F71 #71571F #39711F
monochromatic
#0A0718 #1A1241 #2E1F71 #422CA1 #5940CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1F71#FFFFFF#000000##FFFFFF
##2E1F711.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)
#003173
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#0C3545
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1f71;
/* rgb */ color: rgb(46, 31, 113);
/* oklch */ color: oklch(31.5% 0.133 284.1);
Tailwind
colors: {
  custom: {
    50: '#6f5c9b',
    500: '#2e1f71',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f71;
$custom-light: #6f5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f71",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 250.976,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31544,
    "c": 0.13336,
    "h": 284.1
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#2E1F71
secondary
#94A547
accent
#E048C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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