#2E1A58#2E1A58

#2E1A58 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.106 H 293.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2E1A58
RGBrgb(46, 26, 88)
HSLhsl(259, 54%, 22%)
HSVhsv(259, 70%, 35%)
CMYKcmyk(47.7%, 70.5%, 0%, 65.5%)
CIE-LABlab(15.61, 26.14, -34.04)
CIE-LCHlch(15.61, 42.92, 307.52°)
OKLaboklab(28.38% 0.0419 -0.0973)
OKLCHoklch(28.38% 0.106 293.3)
XYZxyz(3.2571, 2.0241, 9.4497)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A58 #44581A
analogous
#1A2558 #2E1A58 #4D1A58
triadic
#2E1A58 #582E1A #1A582E
tetradic
#2E1A58 #581A25 #44581A #1A584D
square
#2E1A58 #581A25 #44581A #1A584D
split-complementary
#2E1A58 #584D1A #25581A
monochromatic
#0C0718 #150C29 #2E1A58 #472887 #5F36B6

Accessibility & contrast

On white

14.95
#2E1A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A58
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A58#FFFFFF#000000##FFFFFF
##2E1A581.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#222936
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1a58;
/* rgb */ color: rgb(46, 26, 88);
/* oklch */ color: oklch(28.4% 0.106 293.3);
Tailwind
colors: {
  custom: {
    50: '#6b5888',
    500: '#2e1a58',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a58;
$custom-light: #6b5888;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a58",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 259.355,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28384,
    "c": 0.10595,
    "h": 293.3
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#2E1A58
secondary
#758E40
accent
#DE4AAE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1A58

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

Preview Lab → · Contrast checker → · Palette generator →

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