#2E13A1#2E13A1

#2E13A1 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.4% C 0.202 H 277.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2E13A1
RGBrgb(46, 19, 161)
HSLhsl(251, 79%, 35%)
HSVhsv(251, 88%, 63%)
CMYKcmyk(71.4%, 88.2%, 0%, 36.9%)
CIE-LABlab(22.37, 51.81, -69.53)
CIE-LCHlch(22.37, 86.71, 306.69°)
OKLaboklab(35.45% 0.025 -0.2008)
OKLCHoklch(35.45% 0.202 277.1)
XYZxyz(7.7905, 3.6191, 33.9993)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E13A1 #86A113
analogous
#133FA1 #2E13A1 #7513A1
triadic
#2E13A1 #A12E13 #13A12E
tetradic
#2E13A1 #A1133F #86A113 #13A175
square
#2E13A1 #A1133F #86A113 #13A175
split-complementary
#2E13A1 #A17513 #3FA113
monochromatic
#0F0634 #1E0D6A #2E13A1 #3E19D8 #6445E9

Accessibility & contrast

On white

12.18
#2E13A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E13A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E13A1
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E13A1#FFFFFF#000000##FFFFFF
##2E13A11.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e13a1;
/* rgb */ color: rgb(46, 19, 161);
/* oklch */ color: oklch(35.4% 0.202 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a59be',
    500: '#2e13a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e13a1;
$custom-light: #7a59be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e13a1",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 161
  },
  "hsl": {
    "h": 251.408,
    "s": 78.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.20236,
    "h": 277.1
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#2E13A1
secondary
#B1CA46
accent
#F532D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E13A1

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

Preview Lab → · Contrast checker → · Palette generator →

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