#2E1A69#2E1A69

#2E1A69 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.129 H 287.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1A69
RGBrgb(46, 26, 105)
HSLhsl(255, 60%, 26%)
HSVhsv(255, 75%, 41%)
CMYKcmyk(56.2%, 75.2%, 0%, 58.8%)
CIE-LABlab(17.18, 31.57, -42.78)
CIE-LCHlch(17.18, 53.17, 306.43°)
OKLaboklab(29.99% 0.0388 -0.1229)
OKLCHoklch(29.99% 0.129 287.5)
XYZxyz(4.0452, 2.3393, 13.6003)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A69 #55691A
analogous
#1A2D69 #2E1A69 #551A69
triadic
#2E1A69 #692E1A #1A692E
tetradic
#2E1A69 #691A2D #55691A #1A6955
square
#2E1A69 #691A2D #55691A #1A6955
split-complementary
#2E1A69 #69551A #2D691A
monochromatic
#0B0619 #190E38 #2E1A69 #43269A #5932CB

Accessibility & contrast

On white

14.31
#2E1A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1A69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A69
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A69#FFFFFF#000000##FFFFFF
##2E1A691.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6B
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#162F3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1a69;
/* rgb */ color: rgb(46, 26, 105);
/* oklch */ color: oklch(30.0% 0.129 287.5);
Tailwind
colors: {
  custom: {
    50: '#6e5895',
    500: '#2e1a69',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a69;
$custom-light: #6e5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a69",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 105
  },
  "hsl": {
    "h": 255.19,
    "s": 60.305,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29988,
    "c": 0.12893,
    "h": 287.5
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#2E1A69
secondary
#879E40
accent
#E344BB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1A69

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

Preview Lab → · Contrast checker → · Palette generator →

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