#2E1873#2E1873

#2E1873 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.144 H 285.3°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2E1873
RGBrgb(46, 24, 115)
HSLhsl(255, 65%, 27%)
HSVhsv(255, 79%, 45%)
CMYKcmyk(60%, 79.1%, 0%, 54.9%)
CIE-LABlab(17.79, 35.86, -48.27)
CIE-LCHlch(17.79, 60.13, 306.61°)
OKLaboklab(30.73% 0.0379 -0.139)
OKLCHoklch(30.73% 0.144 285.3)
XYZxyz(4.5469, 2.4716, 16.4538)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1873 #5D7318
analogous
#183073 #2E1873 #5B1873
triadic
#2E1873 #732E18 #18732E
tetradic
#2E1873 #731830 #5D7318 #18735B
square
#2E1873 #731830 #5D7318 #18735B
split-complementary
#2E1873 #735B18 #307318
monochromatic
#0A0519 #1A0D40 #2E1873 #4223A6 #5931D4

Accessibility & contrast

On white

14.05
#2E1873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1873
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1873#FFFFFF#000000##FFFFFF
##2E18731.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#0A3244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1873;
/* rgb */ color: rgb(46, 24, 115);
/* oklch */ color: oklch(30.7% 0.144 285.3);
Tailwind
colors: {
  custom: {
    50: '#70589c',
    500: '#2e1873',
    950: '#000000',
  },
}
SCSS
$custom: #2e1873;
$custom-light: #70589c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1873",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 254.505,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30729,
    "c": 0.1441,
    "h": 285.3
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#2E1873
secondary
#8FA83F
accent
#E83FC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1873

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

Preview Lab → · Contrast checker → · Palette generator →

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