#2E1068#2E1068

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

Color values

HEX#2E1068
RGBrgb(46, 16, 104)
HSLhsl(260, 73%, 24%)
HSVhsv(260, 85%, 41%)
CMYKcmyk(55.8%, 84.6%, 0%, 59.2%)
CIE-LABlab(15.23, 36.52, -45.32)
CIE-LCHlch(15.23, 58.21, 308.86°)
OKLaboklab(28.59% 0.0476 -0.1303)
OKLCHoklch(28.59% 0.139 290)
XYZxyz(3.8100, 1.9507, 13.2698)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1068 #4A6810
analogous
#101E68 #2E1068 #5A1068
triadic
#2E1068 #682E10 #10682E
tetradic
#2E1068 #68101E #4A6810 #10685A
square
#2E1068 #68101E #4A6810 #10685A
split-complementary
#2E1068 #685A10 #1E6810
monochromatic
#0C041B #170833 #2E1068 #45189D #5D20D2

Accessibility & contrast

On white

15.11
#2E1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1068
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1068#FFFFFF#000000##FFFFFF
##2E10681.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1068;
/* rgb */ color: rgb(46, 16, 104);
/* oklch */ color: oklch(28.6% 0.139 290.0);
Tailwind
colors: {
  custom: {
    50: '#6f5394',
    500: '#2e1068',
    950: '#000000',
  },
}
SCSS
$custom: #2e1068;
$custom-light: #6f5394;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1068",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 260.455,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28588,
    "c": 0.13872,
    "h": 290
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#2E1068
secondary
#7BA034
accent
#F038B1
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1068

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

Preview Lab → · Contrast checker → · Palette generator →

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