#2E1268#2E1268

#2E1268 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.137 H 289.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1268
RGBrgb(46, 18, 104)
HSLhsl(260, 70%, 24%)
HSVhsv(260, 83%, 41%)
CMYKcmyk(55.8%, 82.7%, 0%, 59.2%)
CIE-LABlab(15.55, 35.57, -44.78)
CIE-LCHlch(15.55, 57.19, 308.46°)
OKLaboklab(28.82% 0.046 -0.1288)
OKLCHoklch(28.82% 0.137 289.7)
XYZxyz(3.8410, 2.0128, 13.2801)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1268 #4C6812
analogous
#122168 #2E1268 #591268
triadic
#2E1268 #682E12 #12682E
tetradic
#2E1268 #681221 #4C6812 #126859
square
#2E1268 #681221 #4C6812 #126859
split-complementary
#2E1268 #685912 #216812
monochromatic
#0C051A #170934 #2E1268 #451B9C #5C24D0

Accessibility & contrast

On white

14.97
#2E1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1268
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1268#FFFFFF#000000##FFFFFF
##2E12681.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#182B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1268;
/* rgb */ color: rgb(46, 18, 104);
/* oklch */ color: oklch(28.8% 0.137 289.7);
Tailwind
colors: {
  custom: {
    50: '#6e5494',
    500: '#2e1268',
    950: '#000000',
  },
}
SCSS
$custom: #2e1268;
$custom-light: #6e5494;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1268",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 259.535,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28816,
    "c": 0.13674,
    "h": 289.7
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#2E1268
secondary
#7DA036
accent
#ED3BB3
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1268

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

Preview Lab → · Contrast checker → · Palette generator →

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