#2E1858#2E1858

#2E1858 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.109 H 294.0°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#2E1858
RGBrgb(46, 24, 88)
HSLhsl(261, 57%, 22%)
HSVhsv(261, 73%, 35%)
CMYKcmyk(47.7%, 72.7%, 0%, 65.5%)
CIE-LABlab(15.16, 27.37, -34.78)
CIE-LCHlch(15.16, 44.26, 308.21°)
OKLaboklab(28.06% 0.0443 -0.0995)
OKLCHoklch(28.06% 0.109 294)
XYZxyz(3.2143, 1.9386, 9.4355)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1858 #425818
analogous
#182258 #2E1858 #4E1858
triadic
#2E1858 #582E18 #18582E
tetradic
#2E1858 #581822 #425818 #18584E
square
#2E1858 #581822 #425818 #18584E
split-complementary
#2E1858 #584E18 #225818
monochromatic
#0D0718 #150B28 #2E1858 #472588 #6032B8

Accessibility & contrast

On white

15.13
#2E1858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1858
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1858#FFFFFF#000000##FFFFFF
##2E18581.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#222835
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1858;
/* rgb */ color: rgb(46, 24, 88);
/* oklch */ color: oklch(28.1% 0.109 294.0);
Tailwind
colors: {
  custom: {
    50: '#6b5688',
    500: '#2e1858',
    950: '#000000',
  },
}
SCSS
$custom: #2e1858;
$custom-light: #6b5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1858",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 260.625,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28059,
    "c": 0.10888,
    "h": 294
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#2E1858
secondary
#738F3D
accent
#E047AC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1858

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

Preview Lab → · Contrast checker → · Palette generator →

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