#2E1070#2E1070

#2E1070 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.148 H 287.5°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2E1070
RGBrgb(46, 16, 112)
HSLhsl(259, 75%, 25%)
HSVhsv(259, 86%, 44%)
CMYKcmyk(58.9%, 85.7%, 0%, 56.1%)
CIE-LABlab(16.11, 38.87, -49.09)
CIE-LCHlch(16.11, 62.62, 308.37°)
OKLaboklab(29.46% 0.0446 -0.1413)
OKLCHoklch(29.46% 0.148 287.5)
XYZxyz(4.2358, 2.1210, 15.5123)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1070 #527010
analogous
#102270 #2E1070 #5E1070
triadic
#2E1070 #702E10 #10702E
tetradic
#2E1070 #701022 #527010 #10705E
square
#2E1070 #701022 #527010 #10705E
split-complementary
#2E1070 #705E10 #227010
monochromatic
#0B041B #18083A #2E1070 #4418A6 #5A1FDB

Accessibility & contrast

On white

14.75
#2E1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1070
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1070#FFFFFF#000000##FFFFFF
##2E10701.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#0F2D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1070;
/* rgb */ color: rgb(46, 16, 112);
/* oklch */ color: oklch(29.5% 0.148 287.5);
Tailwind
colors: {
  custom: {
    50: '#70539a',
    500: '#2e1070',
    950: '#000000',
  },
}
SCSS
$custom: #2e1070;
$custom-light: #70539a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1070",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 258.75,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29463,
    "c": 0.1482,
    "h": 287.5
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#2E1070
secondary
#84A834
accent
#F236B7
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1070

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

Preview Lab → · Contrast checker → · Palette generator →

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