#2E148D#2E148D

#2E148D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.179 H 280.2°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2E148D
RGBrgb(46, 20, 141)
HSLhsl(253, 75%, 32%)
HSVhsv(253, 86%, 55%)
CMYKcmyk(67.4%, 85.8%, 0%, 44.7%)
CIE-LABlab(20.06, 45.67, -61.03)
CIE-LCHlch(20.06, 76.22, 306.81°)
OKLaboklab(33.17% 0.0317 -0.1761)
OKLCHoklch(33.17% 0.179 280.2)
XYZxyz(6.1831, 3.0037, 25.4481)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E148D #738D14
analogous
#14368D #2E148D #6B148D
triadic
#2E148D #8D2E14 #148D2E
tetradic
#2E148D #8D1436 #738D14 #148D6B
square
#2E148D #8D1436 #738D14 #148D6B
split-complementary
#2E148D #8D6B14 #368D14
monochromatic
#0B0522 #1D0C57 #2E148D #3F1CC3 #5D39E3

Accessibility & contrast

On white

13.12
#2E148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E148D
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E148D#FFFFFF#000000##FFFFFF
##2E148D1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e148d;
/* rgb */ color: rgb(46, 20, 141);
/* oklch */ color: oklch(33.2% 0.179 280.2);
Tailwind
colors: {
  custom: {
    50: '#7658b0',
    500: '#2e148d',
    950: '#000000',
  },
}
SCSS
$custom: #2e148d;
$custom-light: #7658b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e148d",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 252.893,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.17897,
    "h": 280.2
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#2E148D
secondary
#A4C13C
accent
#F236C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E148D

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

Preview Lab → · Contrast checker → · Palette generator →

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