#2E1870#2E1870

#2E1870 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.140 H 286.1°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2E1870
RGBrgb(46, 24, 112)
HSLhsl(255, 65%, 27%)
HSVhsv(255, 79%, 44%)
CMYKcmyk(58.9%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.48, 34.92, -46.84)
CIE-LCHlch(17.48, 58.43, 306.70°)
OKLaboklab(30.42% 0.0388 -0.1348)
OKLCHoklch(30.42% 0.14 286.1)
XYZxyz(4.3771, 2.4037, 15.5594)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1870 #5A7018
analogous
#182E70 #2E1870 #5A1870
triadic
#2E1870 #702E18 #18702E
tetradic
#2E1870 #70182E #5A7018 #18705A
square
#2E1870 #70182E #5A7018 #18705A
split-complementary
#2E1870 #705A18 #2E7018
monochromatic
#0A0519 #190D3E #2E1870 #4323A2 #5930D3

Accessibility & contrast

On white

14.18
#2E1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1870
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1870#FFFFFF#000000##FFFFFF
##2E18701.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#0F3143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1870;
/* rgb */ color: rgb(46, 24, 112);
/* oklch */ color: oklch(30.4% 0.140 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f589a',
    500: '#2e1870',
    950: '#000000',
  },
}
SCSS
$custom: #2e1870;
$custom-light: #6f589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1870",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 255,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30415,
    "c": 0.14032,
    "h": 286.1
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#2E1870
secondary
#8CA53E
accent
#E840BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1870

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

Preview Lab → · Contrast checker → · Palette generator →

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