#2E1470#2E1470

#2E1470 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.144 H 286.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2E1470
RGBrgb(46, 20, 112)
HSLhsl(257, 70%, 26%)
HSVhsv(257, 82%, 44%)
CMYKcmyk(58.9%, 82.1%, 0%, 56.1%)
CIE-LABlab(16.75, 37.00, -48.04)
CIE-LCHlch(16.75, 60.63, 307.60°)
OKLaboklab(29.91% 0.0419 -0.1383)
OKLCHoklch(29.91% 0.145 286.8)
XYZxyz(4.3006, 2.2508, 15.5339)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1470 #567014
analogous
#142870 #2E1470 #5C1470
triadic
#2E1470 #702E14 #14702E
tetradic
#2E1470 #701428 #567014 #14705C
square
#2E1470 #701428 #567014 #14705C
split-complementary
#2E1470 #705C14 #287014
monochromatic
#0B051A #190B3C #2E1470 #431DA4 #5927D8

Accessibility & contrast

On white

14.48
#2E1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1470
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1470#FFFFFF#000000##FFFFFF
##2E14701.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#0F2F42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1470;
/* rgb */ color: rgb(46, 20, 112);
/* oklch */ color: oklch(29.9% 0.144 286.8);
Tailwind
colors: {
  custom: {
    50: '#70559a',
    500: '#2e1470',
    950: '#000000',
  },
}
SCSS
$custom: #2e1470;
$custom-light: #70559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1470",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 256.957,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29908,
    "c": 0.1445,
    "h": 286.8
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#2E1470
secondary
#88A639
accent
#ED3BBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1470

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

Preview Lab → · Contrast checker → · Palette generator →

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