#2E158D#2E158D

#2E158D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.178 H 280.1°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2E158D
RGBrgb(46, 21, 141)
HSLhsl(253, 74%, 32%)
HSVhsv(253, 85%, 55%)
CMYKcmyk(67.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(20.20, 45.24, -60.79)
CIE-LCHlch(20.20, 75.77, 306.66°)
OKLaboklab(33.27% 0.0313 -0.1755)
OKLCHoklch(33.27% 0.178 280.1)
XYZxyz(6.2011, 3.0398, 25.4541)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E158D #748D15
analogous
#15388D #2E158D #6A158D
triadic
#2E158D #8D2E15 #158D2E
tetradic
#2E158D #8D1538 #748D15 #158D6A
square
#2E158D #8D1538 #748D15 #158D6A
split-complementary
#2E158D #8D6A15 #388D15
monochromatic
#0B0522 #1D0D58 #2E158D #3F1DC2 #5D3BE2

Accessibility & contrast

On white

13.06
#2E158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E158D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E158D#FFFFFF#000000##FFFFFF
##2E158D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e158d;
/* rgb */ color: rgb(46, 21, 141);
/* oklch */ color: oklch(33.3% 0.178 280.1);
Tailwind
colors: {
  custom: {
    50: '#7658b0',
    500: '#2e158d',
    950: '#000000',
  },
}
SCSS
$custom: #2e158d;
$custom-light: #7658b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e158d",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 252.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33266,
    "c": 0.17823,
    "h": 280.1
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E158D

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

Preview Lab → · Contrast checker → · Palette generator →

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