#2E148E#2E148E

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

Color values

HEX#2E148E
RGBrgb(46, 20, 142)
HSLhsl(253, 75%, 32%)
HSVhsv(253, 86%, 56%)
CMYKcmyk(67.6%, 85.9%, 0%, 44.3%)
CIE-LABlab(20.18, 45.96, -61.45)
CIE-LCHlch(20.18, 76.74, 306.79°)
OKLaboklab(33.28% 0.0314 -0.1774)
OKLCHoklch(33.28% 0.18 280)
XYZxyz(6.2578, 3.0336, 25.8417)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E148E #748E14
analogous
#14378E #2E148E #6B148E
triadic
#2E148E #8E2E14 #148E2E
tetradic
#2E148E #8E1437 #748E14 #148E6B
square
#2E148E #8E1437 #748E14 #148E6B
split-complementary
#2E148E #8E6B14 #378E14
monochromatic
#0B0523 #1D0C58 #2E148E #3F1CC4 #5D39E3

Accessibility & contrast

On white

13.07
#2E148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E148E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E148E#FFFFFF#000000##FFFFFF
##2E148E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e148e;
/* rgb */ color: rgb(46, 20, 142);
/* oklch */ color: oklch(33.3% 0.180 280.0);
Tailwind
colors: {
  custom: {
    50: '#7658b0',
    500: '#2e148e',
    950: '#000000',
  },
}
SCSS
$custom: #2e148e;
$custom-light: #7658b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e148e",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 252.787,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.18013,
    "h": 280
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#2E148E
secondary
#A5C23C
accent
#F236CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E148E

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

Preview Lab → · Contrast checker → · Palette generator →

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