#2E1A7C#2E1A7C

#2E1A7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.153 H 282.8°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2E1A7C
RGBrgb(46, 26, 124)
HSLhsl(252, 65%, 29%)
HSVhsv(252, 79%, 49%)
CMYKcmyk(62.9%, 79%, 0%, 51.4%)
CIE-LABlab(19.12, 37.63, -51.86)
CIE-LCHlch(19.12, 64.07, 305.96°)
OKLaboklab(31.95% 0.0339 -0.1495)
OKLCHoklch(31.95% 0.153 282.8)
XYZxyz(5.1331, 2.7745, 19.3299)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A7C #687C1A
analogous
#1A377C #2E1A7C #5F1A7C
triadic
#2E1A7C #7C2E1A #1A7C2E
tetradic
#2E1A7C #7C1A37 #687C1A #1A7C5F
square
#2E1A7C #7C1A37 #687C1A #1A7C5F
split-complementary
#2E1A7C #7C5F1A #377C1A
monochromatic
#090519 #1B0F49 #2E1A7C #4125AF #5A3BD6

Accessibility & contrast

On white

13.50
#2E1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A7C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A7C#FFFFFF#000000##FFFFFF
##2E1A7C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1a7c;
/* rgb */ color: rgb(46, 26, 124);
/* oklch */ color: oklch(31.9% 0.153 282.8);
Tailwind
colors: {
  custom: {
    50: '#7259a3',
    500: '#2e1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a7c;
$custom-light: #7259a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a7c",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 252.245,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31947,
    "c": 0.15332,
    "h": 282.8
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#2E1A7C
secondary
#9AB042
accent
#E840C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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