#2E1266#2E1266

#2E1266 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.134 H 290.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2E1266
RGBrgb(46, 18, 102)
HSLhsl(260, 70%, 24%)
HSVhsv(260, 82%, 40%)
CMYKcmyk(54.9%, 82.4%, 0%, 60%)
CIE-LABlab(15.34, 34.98, -43.81)
CIE-LCHlch(15.34, 56.06, 308.60°)
OKLaboklab(28.6% 0.0467 -0.1259)
OKLCHoklch(28.6% 0.134 290.4)
XYZxyz(3.7406, 1.9726, 12.7515)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1266 #4A6612
analogous
#122066 #2E1266 #581266
triadic
#2E1266 #662E12 #12662E
tetradic
#2E1266 #661220 #4A6612 #126658
square
#2E1266 #661220 #4A6612 #126658
split-complementary
#2E1266 #665812 #206612
monochromatic
#0C051A #170932 #2E1266 #451B9A #5D24CE

Accessibility & contrast

On white

15.06
#2E1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1266
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1266#FFFFFF#000000##FFFFFF
##2E12661.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#1A2A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1266;
/* rgb */ color: rgb(46, 18, 102);
/* oklch */ color: oklch(28.6% 0.134 290.4);
Tailwind
colors: {
  custom: {
    50: '#6e5493',
    500: '#2e1266',
    950: '#000000',
  },
}
SCSS
$custom: #2e1266;
$custom-light: #6e5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1266",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 260,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28604,
    "c": 0.1343,
    "h": 290.4
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#2E1266
secondary
#7B9E36
accent
#ED3BB2
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2E1266

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

Preview Lab → · Contrast checker → · Palette generator →

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