#2E1A70#2E1A70

#2E1A70 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.138 H 285.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2E1A70
RGBrgb(46, 26, 112)
HSLhsl(254, 62%, 27%)
HSVhsv(254, 77%, 44%)
CMYKcmyk(58.9%, 76.8%, 0%, 56.1%)
CIE-LABlab(17.87, 33.81, -46.20)
CIE-LCHlch(17.87, 57.25, 306.20°)
OKLaboklab(30.69% 0.0371 -0.133)
OKLCHoklch(30.69% 0.138 285.6)
XYZxyz(4.4199, 2.4892, 15.5737)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A70 #5C701A
analogous
#1A3170 #2E1A70 #591A70
triadic
#2E1A70 #702E1A #1A702E
tetradic
#2E1A70 #701A31 #5C701A #1A7059
square
#2E1A70 #701A31 #5C701A #1A7059
split-complementary
#2E1A70 #70591A #31701A
monochromatic
#0A0619 #1A0E3E #2E1A70 #4226A2 #5934D0

Accessibility & contrast

On white

14.02
#2E1A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A70
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A70#FFFFFF#000000##FFFFFF
##2E1A701.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#0E3243
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1a70;
/* rgb */ color: rgb(46, 26, 112);
/* oklch */ color: oklch(30.7% 0.138 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f599a',
    500: '#2e1a70',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a70;
$custom-light: #6f599a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a70",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 253.953,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30692,
    "c": 0.13807,
    "h": 285.6
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#2E1A70
secondary
#8EA541
accent
#E542BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1A70

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

Preview Lab → · Contrast checker → · Palette generator →

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