#2E1A8C#2E1A8C

#2E1A8C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.173 H 279.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2E1A8C
RGBrgb(46, 26, 140)
HSLhsl(251, 69%, 33%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(67.1%, 81.4%, 0%, 45.1%)
CIE-LABlab(20.88, 42.63, -59.05)
CIE-LCHlch(20.88, 72.83, 305.83°)
OKLaboklab(33.7% 0.0292 -0.1705)
OKLCHoklch(33.7% 0.173 279.7)
XYZxyz(6.2282, 3.2126, 25.0977)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A8C #788C1A
analogous
#1A3F8C #2E1A8C #671A8C
triadic
#2E1A8C #8C2E1A #1A8C2E
tetradic
#2E1A8C #8C1A3F #788C1A #1A8C67
square
#2E1A8C #8C1A3F #788C1A #1A8C67
split-complementary
#2E1A8C #8C671A #3F8C1A
monochromatic
#0C0725 #1D1058 #2E1A8C #3F24C0 #5F44DC

Accessibility & contrast

On white

12.78
#2E1A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E1A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A8C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A8C#FFFFFF#000000##FFFFFF
##2E1A8C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1a8c;
/* rgb */ color: rgb(46, 26, 140);
/* oklch */ color: oklch(33.7% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#755aaf',
    500: '#2e1a8c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a8c;
$custom-light: #755aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a8c",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 250.526,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33697,
    "c": 0.17296,
    "h": 279.7
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#2E1A8C
secondary
#A8BE44
accent
#EC3CCD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E1A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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