#2E1867#2E1867

#2E1867 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.129 H 288.7°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2E1867
RGBrgb(46, 24, 103)
HSLhsl(257, 62%, 25%)
HSVhsv(257, 77%, 40%)
CMYKcmyk(55.3%, 76.7%, 0%, 59.6%)
CIE-LABlab(16.57, 32.09, -42.46)
CIE-LCHlch(16.57, 53.22, 307.08°)
OKLaboklab(29.5% 0.0412 -0.122)
OKLCHoklch(29.5% 0.129 288.7)
XYZxyz(3.9008, 2.2132, 13.0510)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1867 #516718
analogous
#182967 #2E1867 #561867
triadic
#2E1867 #672E18 #18672E
tetradic
#2E1867 #671829 #516718 #186756
square
#2E1867 #671829 #516718 #186756
split-complementary
#2E1867 #675618 #296718
monochromatic
#0B0619 #180C35 #2E1867 #442499 #5A2FCA

Accessibility & contrast

On white

14.56
#2E1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1867
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1867#FFFFFF#000000##FFFFFF
##2E18671.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#182D3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1867;
/* rgb */ color: rgb(46, 24, 103);
/* oklch */ color: oklch(29.5% 0.129 288.7);
Tailwind
colors: {
  custom: {
    50: '#6e5793',
    500: '#2e1867',
    950: '#000000',
  },
}
SCSS
$custom: #2e1867;
$custom-light: #6e5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1867",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 256.709,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29497,
    "c": 0.12877,
    "h": 288.7
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#2E1867
secondary
#839D3E
accent
#E543B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1867

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

Preview Lab → · Contrast checker → · Palette generator →

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