#2E1A64#2E1A64

#2E1A64 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.122 H 289.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2E1A64
RGBrgb(46, 26, 100)
HSLhsl(256, 59%, 25%)
HSVhsv(256, 74%, 39%)
CMYKcmyk(54%, 74%, 0%, 60.8%)
CIE-LABlab(16.70, 29.97, -40.27)
CIE-LCHlch(16.70, 50.20, 306.65°)
OKLaboklab(29.5% 0.0399 -0.1156)
OKLCHoklch(29.5% 0.122 289)
XYZxyz(3.7957, 2.2396, 12.2864)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A64 #50641A
analogous
#1A2B64 #2E1A64 #531A64
triadic
#2E1A64 #642E1A #1A642E
tetradic
#2E1A64 #641A2B #50641A #1A6453
square
#2E1A64 #641A2B #50641A #1A6453
split-complementary
#2E1A64 #64531A #2B641A
monochromatic
#0B0618 #180D33 #2E1A64 #442795 #5B33C5

Accessibility & contrast

On white

14.50
#2E1A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A64
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A64#FFFFFF#000000##FFFFFF
##2E1A641.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#1B2D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1a64;
/* rgb */ color: rgb(46, 26, 100);
/* oklch */ color: oklch(29.5% 0.122 289.0);
Tailwind
colors: {
  custom: {
    50: '#6d5891',
    500: '#2e1a64',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a64;
$custom-light: #6d5891;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a64",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 256.216,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29499,
    "c": 0.12229,
    "h": 289
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#2E1A64
secondary
#819A40
accent
#E246B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2E1A64

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

Preview Lab → · Contrast checker → · Palette generator →

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