#2E1E58#2E1E58

#2E1E58 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.100 H 291.7°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2E1E58
RGBrgb(46, 30, 88)
HSLhsl(257, 49%, 23%)
HSVhsv(257, 66%, 35%)
CMYKcmyk(47.7%, 65.9%, 0%, 65.5%)
CIE-LABlab(16.57, 23.57, -32.49)
CIE-LCHlch(16.57, 40.14, 305.96°)
OKLaboklab(29.08% 0.0369 -0.0927)
OKLCHoklch(29.08% 0.1 291.7)
XYZxyz(3.3520, 2.2139, 9.4813)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E58 #48581E
analogous
#1E2B58 #2E1E58 #4B1E58
triadic
#2E1E58 #582E1E #1E582E
tetradic
#2E1E58 #581E2B #48581E #1E584B
square
#2E1E58 #581E2B #48581E #1E584B
split-complementary
#2E1E58 #584B1E #2B581E
monochromatic
#0C0817 #160E2A #2E1E58 #462E86 #5E3DB3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1E58#FFFFFF#000000##FFFFFF
##2E1E581.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)
#002A5A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#222B37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1e58;
/* rgb */ color: rgb(46, 30, 88);
/* oklch */ color: oklch(29.1% 0.100 291.7);
Tailwind
colors: {
  custom: {
    50: '#6b5a88',
    500: '#2e1e58',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e58;
$custom-light: #6b5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e58",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 88
  },
  "hsl": {
    "h": 256.552,
    "s": 49.153,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29079,
    "c": 0.0998,
    "h": 291.7
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2E1E58
secondary
#798D45
accent
#D94FB3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2E1E58

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

Preview Lab → · Contrast checker → · Palette generator →

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