#2E148B#2E148B

#2E148B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.177 H 280.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2E148B
RGBrgb(46, 20, 139)
HSLhsl(253, 75%, 31%)
HSVhsv(253, 86%, 55%)
CMYKcmyk(66.9%, 85.6%, 0%, 45.5%)
CIE-LABlab(19.82, 45.08, -60.17)
CIE-LCHlch(19.82, 75.18, 306.84°)
OKLaboklab(32.93% 0.0324 -0.1736)
OKLCHoklch(32.93% 0.177 280.6)
XYZxyz(6.0356, 2.9448, 24.6714)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E148B #718B14
analogous
#14358B #2E148B #69148B
triadic
#2E148B #8B2E14 #148B2E
tetradic
#2E148B #8B1435 #718B14 #148B69
square
#2E148B #8B1435 #718B14 #148B69
split-complementary
#2E148B #8B6914 #358B14
monochromatic
#0B0520 #1C0C55 #2E148B #401CC1 #5D37E2

Accessibility & contrast

On white

13.22
#2E148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E148B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E148B#FFFFFF#000000##FFFFFF
##2E148B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e148b;
/* rgb */ color: rgb(46, 20, 139);
/* oklch */ color: oklch(32.9% 0.177 280.6);
Tailwind
colors: {
  custom: {
    50: '#7557ae',
    500: '#2e148b',
    950: '#000000',
  },
}
SCSS
$custom: #2e148b;
$custom-light: #7557ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e148b",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 253.109,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32935,
    "c": 0.17665,
    "h": 280.6
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#2E148B
secondary
#A2BF3C
accent
#F136C9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2E148B

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

Preview Lab → · Contrast checker → · Palette generator →

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