#2E158A#2E158A

#2E158A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.175 H 280.7°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2E158A
RGBrgb(46, 21, 138)
HSLhsl(253, 74%, 31%)
HSVhsv(253, 85%, 54%)
CMYKcmyk(66.7%, 84.8%, 0%, 45.9%)
CIE-LABlab(19.85, 44.35, -59.50)
CIE-LCHlch(19.85, 74.21, 306.70°)
OKLaboklab(32.92% 0.0323 -0.1717)
OKLCHoklch(32.92% 0.175 280.7)
XYZxyz(5.9809, 2.9517, 24.2944)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E158A #718A15
analogous
#15368A #2E158A #68158A
triadic
#2E158A #8A2E15 #158A2E
tetradic
#2E158A #8A1536 #718A15 #158A68
square
#2E158A #8A1536 #718A15 #158A68
split-complementary
#2E158A #8A6815 #368A15
monochromatic
#0B0520 #1C0D55 #2E158A #401DBF #5D39E1

Accessibility & contrast

On white

13.20
#2E158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E158A
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E158A#FFFFFF#000000##FFFFFF
##2E158A1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e158a;
/* rgb */ color: rgb(46, 21, 138);
/* oklch */ color: oklch(32.9% 0.175 280.7);
Tailwind
colors: {
  custom: {
    50: '#7558ad',
    500: '#2e158a',
    950: '#000000',
  },
}
SCSS
$custom: #2e158a;
$custom-light: #7558ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e158a",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 252.821,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.17473,
    "h": 280.7
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#2E158A
secondary
#A2BE3D
accent
#F038C9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2E158A

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

Preview Lab → · Contrast checker → · Palette generator →

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