#2E1458#2E1458

#2E1458 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.114 H 295.3°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1458
RGBrgb(46, 20, 88)
HSLhsl(263, 63%, 21%)
HSVhsv(263, 77%, 35%)
CMYKcmyk(47.7%, 77.3%, 0%, 65.5%)
CIE-LABlab(14.32, 29.71, -36.15)
CIE-LCHlch(14.32, 46.79, 309.41°)
OKLaboklab(27.46% 0.0488 -0.1035)
OKLCHoklch(27.46% 0.114 295.3)
XYZxyz(3.1378, 1.7857, 9.4100)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1458 #3E5814
analogous
#141C58 #2E1458 #501458
triadic
#2E1458 #582E14 #14582E
tetradic
#2E1458 #58141C #3E5814 #145850
square
#2E1458 #58141C #3E5814 #145850
split-complementary
#2E1458 #585014 #1C5814
monochromatic
#0D0619 #140926 #2E1458 #481F8A #622BBC

Accessibility & contrast

On white

15.47
#2E1458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1458
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1458#FFFFFF#000000##FFFFFF
##2E14581.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#222534
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1458;
/* rgb */ color: rgb(46, 20, 88);
/* oklch */ color: oklch(27.5% 0.114 295.3);
Tailwind
colors: {
  custom: {
    50: '#6b5488',
    500: '#2e1458',
    950: '#000000',
  },
}
SCSS
$custom: #2e1458;
$custom-light: #6b5488;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1458",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 262.941,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27458,
    "c": 0.11441,
    "h": 295.3
  },
  "luminance": 0.01786
}

Semantic roles & 50–950 ramp

primary
#2E1458
secondary
#6E9038
accent
#E642A7
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1458

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

Preview Lab → · Contrast checker → · Palette generator →

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