#2E1358#2E1358

#2E1358 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.116 H 295.5°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1358
RGBrgb(46, 19, 88)
HSLhsl(263, 64%, 21%)
HSVhsv(263, 78%, 35%)
CMYKcmyk(47.7%, 78.4%, 0%, 65.5%)
CIE-LABlab(14.12, 30.26, -36.47)
CIE-LCHlch(14.12, 47.39, 309.69°)
OKLaboklab(27.32% 0.0499 -0.1044)
OKLCHoklch(27.32% 0.116 295.5)
XYZxyz(3.1206, 1.7511, 9.4042)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1358 #3D5813
analogous
#131A58 #2E1358 #501358
triadic
#2E1358 #582E13 #13582E
tetradic
#2E1358 #58131A #3D5813 #135850
square
#2E1358 #58131A #3D5813 #135850
split-complementary
#2E1358 #585013 #1A5813
monochromatic
#0D0519 #140826 #2E1358 #481E8A #6329BD

Accessibility & contrast

On white

15.55
#2E1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1358
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1358#FFFFFF#000000##FFFFFF
##2E13581.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1358;
/* rgb */ color: rgb(46, 19, 88);
/* oklch */ color: oklch(27.3% 0.116 295.5);
Tailwind
colors: {
  custom: {
    50: '#6c5388',
    500: '#2e1358',
    950: '#000000',
  },
}
SCSS
$custom: #2e1358;
$custom-light: #6c5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1358",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 263.478,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27318,
    "c": 0.11571,
    "h": 295.5
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#2E1358
secondary
#6D9037
accent
#E740A6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1358

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

Preview Lab → · Contrast checker → · Palette generator →

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