#2E1864#2E1864

#2E1864 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.125 H 289.6°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1864
RGBrgb(46, 24, 100)
HSLhsl(257, 61%, 24%)
HSVhsv(257, 76%, 39%)
CMYKcmyk(54%, 76%, 0%, 60.8%)
CIE-LABlab(16.28, 31.14, -40.96)
CIE-LCHlch(16.28, 51.45, 307.24°)
OKLaboklab(29.2% 0.0419 -0.1176)
OKLCHoklch(29.2% 0.125 289.6)
XYZxyz(3.7529, 2.1540, 12.2721)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1864 #4E6418
analogous
#182864 #2E1864 #541864
triadic
#2E1864 #642E18 #18642E
tetradic
#2E1864 #641828 #4E6418 #186454
square
#2E1864 #641828 #4E6418 #186454
split-complementary
#2E1864 #645418 #286418
monochromatic
#0B0619 #170C33 #2E1864 #452495 #5B30C7

Accessibility & contrast

On white

14.68
#2E1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1864
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1864#FFFFFF#000000##FFFFFF
##2E18641.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#1B2C3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1864;
/* rgb */ color: rgb(46, 24, 100);
/* oklch */ color: oklch(29.2% 0.125 289.6);
Tailwind
colors: {
  custom: {
    50: '#6d5791',
    500: '#2e1864',
    950: '#000000',
  },
}
SCSS
$custom: #2e1864;
$custom-light: #6d5791;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1864",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 257.368,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29199,
    "c": 0.12486,
    "h": 289.6
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#2E1864
secondary
#7F9A3E
accent
#E443B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2E1864

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

Preview Lab → · Contrast checker → · Palette generator →

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