#2E1370#2E1370

#2E1370 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.145 H 287.0°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1370
RGBrgb(46, 19, 112)
HSLhsl(257, 71%, 26%)
HSVhsv(257, 83%, 44%)
CMYKcmyk(58.9%, 83%, 0%, 56.1%)
CIE-LABlab(16.58, 37.49, -48.31)
CIE-LCHlch(16.58, 61.15, 307.81°)
OKLaboklab(29.79% 0.0426 -0.1391)
OKLCHoklch(29.79% 0.145 287)
XYZxyz(4.2833, 2.2162, 15.5282)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1370 #557013
analogous
#132770 #2E1370 #5C1370
triadic
#2E1370 #702E13 #13702E
tetradic
#2E1370 #701327 #557013 #13705C
square
#2E1370 #701327 #557013 #13705C
split-complementary
#2E1370 #705C13 #277013
monochromatic
#0B041A #190A3C #2E1370 #431CA4 #5925D9

Accessibility & contrast

On white

14.55
#2E1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1370
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1370#FFFFFF#000000##FFFFFF
##2E13701.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#0F2E42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1370;
/* rgb */ color: rgb(46, 19, 112);
/* oklch */ color: oklch(29.8% 0.145 287.0);
Tailwind
colors: {
  custom: {
    50: '#70559a',
    500: '#2e1370',
    950: '#000000',
  },
}
SCSS
$custom: #2e1370;
$custom-light: #70559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1370",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 257.419,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2979,
    "c": 0.14547,
    "h": 287
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#2E1370
secondary
#87A738
accent
#EE3ABA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1370

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

Preview Lab → · Contrast checker → · Palette generator →

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