#2E148F#2E148F

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

Color values

HEX#2E148F
RGBrgb(46, 20, 143)
HSLhsl(253, 75%, 32%)
HSVhsv(253, 86%, 56%)
CMYKcmyk(67.8%, 86%, 0%, 43.9%)
CIE-LABlab(20.30, 46.25, -61.88)
CIE-LCHlch(20.30, 77.25, 306.78°)
OKLaboklab(33.4% 0.031 -0.1786)
OKLCHoklch(33.4% 0.181 279.8)
XYZxyz(6.3332, 3.0638, 26.2389)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E148F #758F14
analogous
#14388F #2E148F #6C148F
triadic
#2E148F #8F2E14 #148F2E
tetradic
#2E148F #8F1438 #758F14 #148F6C
square
#2E148F #8F1438 #758F14 #148F6C
split-complementary
#2E148F #8F6C14 #388F14
monochromatic
#0B0524 #1D0C59 #2E148F #3F1CC5 #5E3AE3

Accessibility & contrast

On white

13.02
#2E148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E148F
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E148F#FFFFFF#000000##FFFFFF
##2E148F1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e148f;
/* rgb */ color: rgb(46, 20, 143);
/* oklch */ color: oklch(33.4% 0.181 279.8);
Tailwind
colors: {
  custom: {
    50: '#7658b1',
    500: '#2e148f',
    950: '#000000',
  },
}
SCSS
$custom: #2e148f;
$custom-light: #7658b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e148f",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 252.683,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33401,
    "c": 0.18129,
    "h": 279.8
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#2E148F
secondary
#A6C33C
accent
#F236CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E148F

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

Preview Lab → · Contrast checker → · Palette generator →

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