#2E1168#2E1168

#2E1168 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.138 H 289.9°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#2E1168
RGBrgb(46, 17, 104)
HSLhsl(260, 72%, 24%)
HSVhsv(260, 84%, 41%)
CMYKcmyk(55.8%, 83.7%, 0%, 59.2%)
CIE-LABlab(15.39, 36.06, -45.06)
CIE-LCHlch(15.39, 57.71, 308.67°)
OKLaboklab(28.7% 0.0468 -0.1295)
OKLCHoklch(28.7% 0.138 289.9)
XYZxyz(3.8251, 1.9810, 13.2748)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1168 #4B6811
analogous
#111F68 #2E1168 #591168
triadic
#2E1168 #682E11 #11682E
tetradic
#2E1168 #68111F #4B6811 #116859
square
#2E1168 #68111F #4B6811 #116859
split-complementary
#2E1168 #685911 #1F6811
monochromatic
#0C041A #170833 #2E1168 #451A9D #5D22D1

Accessibility & contrast

On white

15.04
#2E1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1168
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1168#FFFFFF#000000##FFFFFF
##2E11681.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#182A3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1168;
/* rgb */ color: rgb(46, 17, 104);
/* oklch */ color: oklch(28.7% 0.138 289.9);
Tailwind
colors: {
  custom: {
    50: '#6e5394',
    500: '#2e1168',
    950: '#000000',
  },
}
SCSS
$custom: #2e1168;
$custom-light: #6e5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1168",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 260,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.287,
    "c": 0.13775,
    "h": 289.9
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#2E1168
secondary
#7CA035
accent
#EF39B2
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1168

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

Preview Lab → · Contrast checker → · Palette generator →

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