#2E1258#2E1258

#2E1258 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.117 H 295.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2E1258
RGBrgb(46, 18, 88)
HSLhsl(264, 66%, 21%)
HSVhsv(264, 80%, 35%)
CMYKcmyk(47.7%, 79.5%, 0%, 65.5%)
CIE-LABlab(13.93, 30.80, -36.78)
CIE-LCHlch(13.93, 47.98, 309.94°)
OKLaboklab(27.18% 0.0509 -0.1053)
OKLCHoklch(27.18% 0.117 295.8)
XYZxyz(3.1040, 1.7180, 9.3987)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1258 #3C5812
analogous
#121958 #2E1258 #511258
triadic
#2E1258 #582E12 #12582E
tetradic
#2E1258 #581219 #3C5812 #125851
square
#2E1258 #581219 #3C5812 #125851
split-complementary
#2E1258 #585112 #195812
monochromatic
#0D0519 #130825 #2E1258 #491C8B #6327BE

Accessibility & contrast

On white

15.63
#2E1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1258
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1258#FFFFFF#000000##FFFFFF
##2E12581.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1258;
/* rgb */ color: rgb(46, 18, 88);
/* oklch */ color: oklch(27.2% 0.117 295.8);
Tailwind
colors: {
  custom: {
    50: '#6c5388',
    500: '#2e1258',
    950: '#000000',
  },
}
SCSS
$custom: #2e1258;
$custom-light: #6c5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1258",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 264,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27183,
    "c": 0.11698,
    "h": 295.8
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#2E1258
secondary
#6C9135
accent
#E93FA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1258

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

Preview Lab → · Contrast checker → · Palette generator →

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