#2E1375#2E1375

#2E1375 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.151 H 285.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2E1375
RGBrgb(46, 19, 117)
HSLhsl(257, 72%, 27%)
HSVhsv(257, 84%, 46%)
CMYKcmyk(60.7%, 83.8%, 0%, 54.1%)
CIE-LABlab(17.14, 38.98, -50.64)
CIE-LCHlch(17.14, 63.91, 307.59°)
OKLaboklab(30.34% 0.0408 -0.1459)
OKLCHoklch(30.34% 0.152 285.6)
XYZxyz(4.5695, 2.3307, 17.0352)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1375 #5A7513
analogous
#132975 #2E1375 #5F1375
triadic
#2E1375 #752E13 #13752E
tetradic
#2E1375 #751329 #5A7513 #13755F
square
#2E1375 #751329 #5A7513 #13755F
split-complementary
#2E1375 #755F13 #297513
monochromatic
#0A041A #190A40 #2E1375 #431CAA #5927DC

Accessibility & contrast

On white

14.32
#2E1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1375
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1375#FFFFFF#000000##FFFFFF
##2E13751.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#073145
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1375;
/* rgb */ color: rgb(46, 19, 117);
/* oklch */ color: oklch(30.3% 0.151 285.6);
Tailwind
colors: {
  custom: {
    50: '#71559e',
    500: '#2e1375',
    950: '#000000',
  },
}
SCSS
$custom: #2e1375;
$custom-light: #71559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1375",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 256.531,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30338,
    "c": 0.1515,
    "h": 285.6
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#2E1375
secondary
#8CAB38
accent
#EF39BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1375

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

Preview Lab → · Contrast checker → · Palette generator →

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