#2E1158#2E1158

#2E1158 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.118 H 296.1°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2E1158
RGBrgb(46, 17, 88)
HSLhsl(265, 68%, 21%)
HSVhsv(265, 81%, 35%)
CMYKcmyk(47.7%, 80.7%, 0%, 65.5%)
CIE-LABlab(13.75, 31.33, -37.09)
CIE-LCHlch(13.75, 48.55, 310.19°)
OKLaboklab(27.05% 0.0519 -0.1062)
OKLCHoklch(27.05% 0.118 296.1)
XYZxyz(3.0881, 1.6862, 9.3934)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1158 #3B5811
analogous
#111758 #2E1158 #511158
triadic
#2E1158 #582E11 #11582E
tetradic
#2E1158 #581117 #3B5811 #115851
square
#2E1158 #581117 #3B5811 #115851
split-complementary
#2E1158 #585111 #175811
monochromatic
#0D051A #130725 #2E1158 #491B8B #6425BF

Accessibility & contrast

On white

15.70
#2E1158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1158
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1158#FFFFFF#000000##FFFFFF
##2E11581.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#232433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1158;
/* rgb */ color: rgb(46, 17, 88);
/* oklch */ color: oklch(27.1% 0.118 296.1);
Tailwind
colors: {
  custom: {
    50: '#6c5288',
    500: '#2e1158',
    950: '#000000',
  },
}
SCSS
$custom: #2e1158;
$custom-light: #6c5288;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1158",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 264.507,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27053,
    "c": 0.11821,
    "h": 296.1
  },
  "luminance": 0.01686
}

Semantic roles & 50–950 ramp

primary
#2E1158
secondary
#6B9134
accent
#EA3DA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1158

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

Preview Lab → · Contrast checker → · Palette generator →

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