#2E1972#2E1972

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

Color values

HEX#2E1972
RGBrgb(46, 25, 114)
HSLhsl(254, 64%, 27%)
HSVhsv(254, 78%, 45%)
CMYKcmyk(59.6%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.88, 35.01, -47.48)
CIE-LCHlch(17.88, 58.99, 306.40°)
OKLaboklab(30.76% 0.0374 -0.1367)
OKLCHoklch(30.76% 0.142 285.3)
XYZxyz(4.5107, 2.4907, 16.1594)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1972 #5D7219
analogous
#193172 #2E1972 #5A1972
triadic
#2E1972 #722E19 #19722E
tetradic
#2E1972 #721931 #5D7219 #19725A
square
#2E1972 #721931 #5D7219 #19725A
split-complementary
#2E1972 #725A19 #317219
monochromatic
#0A0619 #1A0E40 #2E1972 #4224A4 #5933D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1972#FFFFFF#000000##FFFFFF
##2E19721.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)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#0B3244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1972;
/* rgb */ color: rgb(46, 25, 114);
/* oklch */ color: oklch(30.8% 0.142 285.3);
Tailwind
colors: {
  custom: {
    50: '#70589b',
    500: '#2e1972',
    950: '#000000',
  },
}
SCSS
$custom: #2e1972;
$custom-light: #70589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1972",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 254.157,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30759,
    "c": 0.14176,
    "h": 285.3
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#2E1972
secondary
#8FA740
accent
#E741C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1972

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

Preview Lab → · Contrast checker → · Palette generator →

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