#2E158E#2E158E

#2E158E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.179 H 279.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2E158E
RGBrgb(46, 21, 142)
HSLhsl(252, 74%, 32%)
HSVhsv(252, 85%, 56%)
CMYKcmyk(67.6%, 85.2%, 0%, 44.3%)
CIE-LABlab(20.32, 45.54, -61.21)
CIE-LCHlch(20.32, 76.29, 306.64°)
OKLaboklab(33.38% 0.0309 -0.1767)
OKLCHoklch(33.38% 0.179 279.9)
XYZxyz(6.2758, 3.0697, 25.8477)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E158E #758E15
analogous
#15388E #2E158E #6B158E
triadic
#2E158E #8E2E15 #158E2E
tetradic
#2E158E #8E1538 #758E15 #158E6B
square
#2E158E #8E1538 #758E15 #158E6B
split-complementary
#2E158E #8E6B15 #388E15
monochromatic
#0B0523 #1D0D59 #2E158E #3F1DC3 #5E3BE2

Accessibility & contrast

On white

13.01
#2E158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E158E
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E158E#FFFFFF#000000##FFFFFF
##2E158E1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e158e;
/* rgb */ color: rgb(46, 21, 142);
/* oklch */ color: oklch(33.4% 0.179 279.9);
Tailwind
colors: {
  custom: {
    50: '#7658b0',
    500: '#2e158e',
    950: '#000000',
  },
}
SCSS
$custom: #2e158e;
$custom-light: #7658b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e158e",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 252.397,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33382,
    "c": 0.17939,
    "h": 279.9
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#2E158E
secondary
#A6C23D
accent
#F137CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E158E

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

Preview Lab → · Contrast checker → · Palette generator →

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