#2E1874#2E1874

#2E1874 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.145 H 285.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1874
RGBrgb(46, 24, 116)
HSLhsl(254, 66%, 27%)
HSVhsv(254, 79%, 45%)
CMYKcmyk(60.3%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.90, 36.18, -48.74)
CIE-LCHlch(17.90, 60.70, 306.58°)
OKLaboklab(30.84% 0.0377 -0.1404)
OKLCHoklch(30.84% 0.145 285)
XYZxyz(4.6048, 2.4948, 16.7585)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1874 #5E7418
analogous
#183074 #2E1874 #5C1874
triadic
#2E1874 #742E18 #18742E
tetradic
#2E1874 #741830 #5E7418 #18745C
square
#2E1874 #741830 #5E7418 #18745C
split-complementary
#2E1874 #745C18 #307418
monochromatic
#0A0519 #1A0E41 #2E1874 #4222A7 #5932D5

Accessibility & contrast

On white

14.01
#2E1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1874
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1874#FFFFFF#000000##FFFFFF
##2E18741.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#083245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1874;
/* rgb */ color: rgb(46, 24, 116);
/* oklch */ color: oklch(30.8% 0.145 285.0);
Tailwind
colors: {
  custom: {
    50: '#70589d',
    500: '#2e1874',
    950: '#000000',
  },
}
SCSS
$custom: #2e1874;
$custom-light: #70589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1874",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 254.348,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30835,
    "c": 0.14537,
    "h": 285
  },
  "luminance": 0.02495
}

Semantic roles & 50–950 ramp

primary
#2E1874
secondary
#90A93F
accent
#E93FC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1874

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

Preview Lab → · Contrast checker → · Palette generator →

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