#2E148A#2E148A

#2E148A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.175 H 280.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2E148A
RGBrgb(46, 20, 138)
HSLhsl(253, 75%, 31%)
HSVhsv(253, 86%, 54%)
CMYKcmyk(66.7%, 85.5%, 0%, 45.9%)
CIE-LABlab(19.70, 44.78, -59.74)
CIE-LCHlch(19.70, 74.66, 306.86°)
OKLaboklab(32.82% 0.0328 -0.1724)
OKLCHoklch(32.82% 0.175 280.8)
XYZxyz(5.9629, 2.9157, 24.2884)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E148A #708A14
analogous
#14358A #2E148A #69148A
triadic
#2E148A #8A2E14 #148A2E
tetradic
#2E148A #8A1435 #708A14 #148A69
square
#2E148A #8A1435 #708A14 #148A69
split-complementary
#2E148A #8A6914 #358A14
monochromatic
#0A051F #1C0C55 #2E148A #401CBF #5C36E2

Accessibility & contrast

On white

13.26
#2E148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E148A
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E148A#FFFFFF#000000##FFFFFF
##2E148A1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e148a;
/* rgb */ color: rgb(46, 20, 138);
/* oklch */ color: oklch(32.8% 0.175 280.8);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2e148a',
    950: '#000000',
  },
}
SCSS
$custom: #2e148a;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e148a",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 253.22,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3282,
    "c": 0.17549,
    "h": 280.8
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#2E148A
secondary
#A1BE3C
accent
#F136C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2E148A

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

Preview Lab → · Contrast checker → · Palette generator →

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