#2E1065#2E1065

#2E1065 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.135 H 291.1°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2E1065
RGBrgb(46, 16, 101)
HSLhsl(261, 73%, 23%)
HSVhsv(261, 84%, 40%)
CMYKcmyk(54.5%, 84.2%, 0%, 60.4%)
CIE-LABlab(14.90, 35.64, -43.87)
CIE-LCHlch(14.90, 56.53, 309.09°)
OKLaboklab(28.27% 0.0486 -0.1261)
OKLCHoklch(28.27% 0.135 291.1)
XYZxyz(3.6603, 1.8909, 12.4815)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1065 #476510
analogous
#101D65 #2E1065 #581065
triadic
#2E1065 #652E10 #10652E
tetradic
#2E1065 #65101D #476510 #106558
square
#2E1065 #65101D #476510 #106558
split-complementary
#2E1065 #655810 #1D6510
monochromatic
#0C041A #160830 #2E1065 #46189A #5E21CF

Accessibility & contrast

On white

15.24
#2E1065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1065
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1065#FFFFFF#000000##FFFFFF
##2E10651.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#1A293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1065;
/* rgb */ color: rgb(46, 16, 101);
/* oklch */ color: oklch(28.3% 0.135 291.1);
Tailwind
colors: {
  custom: {
    50: '#6e5392',
    500: '#2e1065',
    950: '#000000',
  },
}
SCSS
$custom: #2e1065;
$custom-light: #6e5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1065",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 101
  },
  "hsl": {
    "h": 261.176,
    "s": 72.65,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28267,
    "c": 0.13513,
    "h": 291.1
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#2E1065
secondary
#789D33
accent
#EF38AF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2E1065

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

Preview Lab → · Contrast checker → · Palette generator →

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