#2E11B4#2E11B4

#2E11B4 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.6% C 0.224 H 274.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2E11B4
RGBrgb(46, 17, 180)
HSLhsl(251, 83%, 39%)
HSVhsv(251, 91%, 71%)
CMYKcmyk(74.4%, 90.6%, 0%, 29.4%)
CIE-LABlab(24.56, 57.71, -77.36)
CIE-LCHlch(24.56, 96.51, 306.72°)
OKLaboklab(37.62% 0.0189 -0.2234)
OKLCHoklch(37.62% 0.224 274.8)
XYZxyz(9.5627, 4.2761, 43.4926)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E11B4 #97B411
analogous
#1145B4 #2E11B4 #7F11B4
triadic
#2E11B4 #B42E11 #11B42E
tetradic
#2E11B4 #B41145 #97B411 #11B47F
square
#2E11B4 #B41145 #97B411 #11B47F
split-complementary
#2E11B4 #B47F11 #45B411
monochromatic
#110644 #200C7C #2E11B4 #3E19E9 #6D51EF

Accessibility & contrast

On white

11.32
#2E11B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E11B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E11B4
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E11B4#FFFFFF#000000##FFFFFF
##2E11B41.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004B6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e11b4;
/* rgb */ color: rgb(46, 17, 180);
/* oklch */ color: oklch(37.6% 0.224 274.8);
Tailwind
colors: {
  custom: {
    50: '#7f5acc',
    500: '#2e11b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e11b4;
$custom-light: #7f5acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e11b4",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 180
  },
  "hsl": {
    "h": 250.675,
    "s": 82.741,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.22423,
    "h": 274.8
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#2E11B4
secondary
#BAD050
accent
#F92FD5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2E11B4

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

Preview Lab → · Contrast checker → · Palette generator →

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