#2E1150#2E1150

#2E1150 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.108 H 299.9°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2E1150
RGBrgb(46, 17, 80)
HSLhsl(268, 65%, 19%)
HSVhsv(268, 79%, 31%)
CMYKcmyk(42.5%, 78.8%, 0%, 68.6%)
CIE-LABlab(12.99, 29.00, -32.88)
CIE-LCHlch(12.99, 43.84, 311.41°)
OKLaboklab(26.28% 0.054 -0.0938)
OKLCHoklch(26.28% 0.108 299.9)
XYZxyz(2.7748, 1.5609, 7.7430)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1150 #335011
analogous
#111450 #2E1150 #4E1150
triadic
#2E1150 #502E11 #11502E
tetradic
#2E1150 #501114 #335011 #11504E
square
#2E1150 #501114 #335011 #11504E
split-complementary
#2E1150 #504E11 #145011
monochromatic
#0F0519 #11061E #2E1150 #4B1C82 #6826B5

Accessibility & contrast

On white

16.00
#2E1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1150
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1150#FFFFFF#000000##FFFFFF
##2E11501.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#26212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1150;
/* rgb */ color: rgb(46, 17, 80);
/* oklch */ color: oklch(26.3% 0.108 299.9);
Tailwind
colors: {
  custom: {
    50: '#6b5282',
    500: '#2e1150',
    950: '#000000',
  },
}
SCSS
$custom: #2e1150;
$custom-light: #6b5282;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1150",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 267.619,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26284,
    "c": 0.10825,
    "h": 299.9
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#2E1150
secondary
#628933
accent
#E8409B
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E1150

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

Preview Lab → · Contrast checker → · Palette generator →

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