#2E1A68#2E1A68

#2E1A68 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.128 H 287.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2E1A68
RGBrgb(46, 26, 104)
HSLhsl(255, 60%, 25%)
HSVhsv(255, 75%, 41%)
CMYKcmyk(55.8%, 75%, 0%, 59.2%)
CIE-LABlab(17.08, 31.25, -42.28)
CIE-LCHlch(17.08, 52.57, 306.47°)
OKLaboklab(29.89% 0.039 -0.1215)
OKLCHoklch(29.89% 0.128 287.8)
XYZxyz(3.9941, 2.3189, 13.3312)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A68 #54681A
analogous
#1A2D68 #2E1A68 #551A68
triadic
#2E1A68 #682E1A #1A682E
tetradic
#2E1A68 #681A2D #54681A #1A6855
square
#2E1A68 #681A2D #54681A #1A6855
split-complementary
#2E1A68 #68551A #2D681A
monochromatic
#0B0618 #180E37 #2E1A68 #442699 #5932CA

Accessibility & contrast

On white

14.35
#2E1A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A68
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A68#FFFFFF#000000##FFFFFF
##2E1A681.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#172F3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1a68;
/* rgb */ color: rgb(46, 26, 104);
/* oklch */ color: oklch(29.9% 0.128 287.8);
Tailwind
colors: {
  custom: {
    50: '#6e5894',
    500: '#2e1a68',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a68;
$custom-light: #6e5894;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a68",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 255.385,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29889,
    "c": 0.12761,
    "h": 287.8
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2E1A68
secondary
#869D40
accent
#E345BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1A68

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

Preview Lab → · Contrast checker → · Palette generator →

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