#2E1066#2E1066

#2E1066 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.136 H 290.7°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2E1066
RGBrgb(46, 16, 102)
HSLhsl(261, 73%, 23%)
HSVhsv(261, 84%, 40%)
CMYKcmyk(54.9%, 84.3%, 0%, 60%)
CIE-LABlab(15.01, 35.94, -44.36)
CIE-LCHlch(15.01, 57.09, 309.01°)
OKLaboklab(28.37% 0.0483 -0.1275)
OKLCHoklch(28.37% 0.136 290.7)
XYZxyz(3.7096, 1.9106, 12.7411)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1066 #486610
analogous
#101D66 #2E1066 #591066
triadic
#2E1066 #662E10 #10662E
tetradic
#2E1066 #66101D #486610 #106659
square
#2E1066 #66101D #486610 #106659
split-complementary
#2E1066 #665910 #1D6610
monochromatic
#0C041A #160831 #2E1066 #46189B #5E21D0

Accessibility & contrast

On white

15.19
#2E1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1066
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1066#FFFFFF#000000##FFFFFF
##2E10661.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1066;
/* rgb */ color: rgb(46, 16, 102);
/* oklch */ color: oklch(28.4% 0.136 290.7);
Tailwind
colors: {
  custom: {
    50: '#6e5393',
    500: '#2e1066',
    950: '#000000',
  },
}
SCSS
$custom: #2e1066;
$custom-light: #6e5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1066",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 260.93,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28374,
    "c": 0.13633,
    "h": 290.7
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#2E1066
secondary
#799E33
accent
#F038B0
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08020D
muted
#7B787E

Preview Lab

Preview with #2E1066

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

Preview Lab → · Contrast checker → · Palette generator →

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