#2E1A7F#2E1A7F

#2E1A7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.157 H 282.1°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2E1A7F
RGBrgb(46, 26, 127)
HSLhsl(252, 66%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(63.8%, 79.5%, 0%, 50.2%)
CIE-LABlab(19.44, 38.57, -53.24)
CIE-LCHlch(19.44, 65.74, 305.93°)
OKLaboklab(32.27% 0.033 -0.1535)
OKLCHoklch(32.27% 0.157 282.1)
XYZxyz(5.3257, 2.8516, 20.3443)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A7F #6B7F1A
analogous
#1A397F #2E1A7F #601A7F
triadic
#2E1A7F #7F2E1A #1A7F2E
tetradic
#2E1A7F #7F1A39 #6B7F1A #1A7F60
square
#2E1A7F #7F1A39 #6B7F1A #1A7F60
split-complementary
#2E1A7F #7F601A #397F1A
monochromatic
#090519 #1C104C #2E1A7F #4024B2 #5B3CD7

Accessibility & contrast

On white

13.37
#2E1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A7F
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A7F#FFFFFF#000000##FFFFFF
##2E1A7F1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1a7f;
/* rgb */ color: rgb(46, 26, 127);
/* oklch */ color: oklch(32.3% 0.157 282.1);
Tailwind
colors: {
  custom: {
    50: '#725aa5',
    500: '#2e1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a7f;
$custom-light: #725aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a7f",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 251.881,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32269,
    "c": 0.15706,
    "h": 282.1
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#2E1A7F
secondary
#9DB342
accent
#E93FC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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