#2E1060#2E1060

#2E1060 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.129 H 293.0°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#2E1060
RGBrgb(46, 16, 96)
HSLhsl(263, 71%, 22%)
HSVhsv(263, 83%, 38%)
CMYKcmyk(52.1%, 83.3%, 0%, 62.4%)
CIE-LABlab(14.38, 34.18, -41.42)
CIE-LCHlch(14.38, 53.70, 309.53°)
OKLaboklab(27.74% 0.0504 -0.1189)
OKLCHoklch(27.74% 0.129 293)
XYZxyz(3.4227, 1.7958, 11.2304)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1060 #426010
analogous
#101A60 #2E1060 #561060
triadic
#2E1060 #602E10 #10602E
tetradic
#2E1060 #60101A #426010 #106056
square
#2E1060 #60101A #426010 #106056
split-complementary
#2E1060 #605610 #1A6010
monochromatic
#0D041A #15072C #2E1060 #471994 #6021C9

Accessibility & contrast

On white

15.45
#2E1060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1060
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1060#FFFFFF#000000##FFFFFF
##2E10601.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#1E2738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1060;
/* rgb */ color: rgb(46, 16, 96);
/* oklch */ color: oklch(27.7% 0.129 293.0);
Tailwind
colors: {
  custom: {
    50: '#6d528e',
    500: '#2e1060',
    950: '#000000',
  },
}
SCSS
$custom: #2e1060;
$custom-light: #6d528e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1060",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 262.5,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27741,
    "c": 0.12912,
    "h": 293
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#2E1060
secondary
#739933
accent
#EE3AAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2E1060

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

Preview Lab → · Contrast checker → · Palette generator →

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