#2E12A0#2E12A0

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

Color values

HEX#2E12A0
RGBrgb(46, 18, 160)
HSLhsl(252, 80%, 35%)
HSVhsv(252, 89%, 63%)
CMYKcmyk(71.2%, 88.8%, 0%, 37.3%)
CIE-LABlab(22.13, 51.88, -69.32)
CIE-LCHlch(22.13, 86.59, 306.81°)
OKLaboklab(35.25% 0.0256 -0.2002)
OKLCHoklch(35.25% 0.202 277.3)
XYZxyz(7.6861, 3.5508, 33.5312)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E12A0 #84A012
analogous
#123DA0 #2E12A0 #7512A0
triadic
#2E12A0 #A02E12 #12A02E
tetradic
#2E12A0 #A0123D #84A012 #12A075
square
#2E12A0 #A0123D #84A012 #12A075
split-complementary
#2E12A0 #A07512 #3DA012
monochromatic
#0E0632 #1E0C69 #2E12A0 #3E18D7 #6443EA

Accessibility & contrast

On white

12.28
#2E12A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E12A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E12A0
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E12A0#FFFFFF#000000##FFFFFF
##2E12A01.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e12a0;
/* rgb */ color: rgb(46, 18, 160);
/* oklch */ color: oklch(35.2% 0.202 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a58be',
    500: '#2e12a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e12a0;
$custom-light: #7a58be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e12a0",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 160
  },
  "hsl": {
    "h": 251.831,
    "s": 79.775,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35248,
    "c": 0.20182,
    "h": 277.3
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#2E12A0
secondary
#B0CA44
accent
#F632CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E12A0

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

Preview Lab → · Contrast checker → · Palette generator →

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