#2E1A66#2E1A66

#2E1A66 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.125 H 288.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2E1A66
RGBrgb(46, 26, 102)
HSLhsl(256, 59%, 25%)
HSVhsv(256, 75%, 40%)
CMYKcmyk(54.9%, 74.5%, 0%, 60%)
CIE-LABlab(16.89, 30.61, -41.28)
CIE-LCHlch(16.89, 51.39, 306.56°)
OKLaboklab(29.69% 0.0395 -0.1186)
OKLCHoklch(29.69% 0.125 288.4)
XYZxyz(3.8937, 2.2788, 12.8025)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A66 #52661A
analogous
#1A2C66 #2E1A66 #541A66
triadic
#2E1A66 #662E1A #1A662E
tetradic
#2E1A66 #661A2C #52661A #1A6654
square
#2E1A66 #661A2C #52661A #1A6654
split-complementary
#2E1A66 #66541A #2C661A
monochromatic
#0B0618 #180E35 #2E1A66 #442697 #5A33C8

Accessibility & contrast

On white

14.43
#2E1A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A66
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A66#FFFFFF#000000##FFFFFF
##2E1A661.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#192E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1a66;
/* rgb */ color: rgb(46, 26, 102);
/* oklch */ color: oklch(29.7% 0.125 288.4);
Tailwind
colors: {
  custom: {
    50: '#6d5892',
    500: '#2e1a66',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a66;
$custom-light: #6d5892;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a66",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 255.789,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29693,
    "c": 0.12496,
    "h": 288.4
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#2E1A66
secondary
#849C40
accent
#E345B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1A66

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

Preview Lab → · Contrast checker → · Palette generator →

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