#2E1872#2E1872

#2E1872 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.143 H 285.5°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1872
RGBrgb(46, 24, 114)
HSLhsl(255, 65%, 27%)
HSVhsv(255, 79%, 45%)
CMYKcmyk(59.6%, 78.9%, 0%, 55.3%)
CIE-LABlab(17.68, 35.55, -47.80)
CIE-LCHlch(17.68, 59.57, 306.64°)
OKLaboklab(30.62% 0.0382 -0.1376)
OKLCHoklch(30.62% 0.143 285.5)
XYZxyz(4.4897, 2.4487, 16.1524)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1872 #5C7218
analogous
#182F72 #2E1872 #5B1872
triadic
#2E1872 #722E18 #18722E
tetradic
#2E1872 #72182F #5C7218 #18725B
square
#2E1872 #72182F #5C7218 #18725B
split-complementary
#2E1872 #725B18 #2F7218
monochromatic
#0A0519 #1A0D3F #2E1872 #4223A5 #5931D4

Accessibility & contrast

On white

14.10
#2E1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1872
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1872#FFFFFF#000000##FFFFFF
##2E18721.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#0C3144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1872;
/* rgb */ color: rgb(46, 24, 114);
/* oklch */ color: oklch(30.6% 0.143 285.5);
Tailwind
colors: {
  custom: {
    50: '#70589b',
    500: '#2e1872',
    950: '#000000',
  },
}
SCSS
$custom: #2e1872;
$custom-light: #70589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1872",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 254.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30624,
    "c": 0.14285,
    "h": 285.5
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#2E1872
secondary
#8EA73E
accent
#E840BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1872

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

Preview Lab → · Contrast checker → · Palette generator →

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