#2E1971#2E1971

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

Color values

HEX#2E1971
RGBrgb(46, 25, 113)
HSLhsl(254, 64%, 27%)
HSVhsv(254, 78%, 44%)
CMYKcmyk(59.3%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.77, 34.69, -47.00)
CIE-LCHlch(17.77, 58.42, 306.43°)
OKLaboklab(30.65% 0.0377 -0.1353)
OKLCHoklch(30.65% 0.14 285.6)
XYZxyz(4.4541, 2.4681, 15.8613)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1971 #5C7119
analogous
#193071 #2E1971 #5A1971
triadic
#2E1971 #712E19 #19712E
tetradic
#2E1971 #711930 #5C7119 #19715A
square
#2E1971 #711930 #5C7119 #19715A
split-complementary
#2E1971 #715A19 #307119
monochromatic
#0A0619 #1A0E3F #2E1971 #4224A3 #5933D2

Accessibility & contrast

On white

14.06
#2E1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1971
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1971#FFFFFF#000000##FFFFFF
##2E19711.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#0D3144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1971;
/* rgb */ color: rgb(46, 25, 113);
/* oklch */ color: oklch(30.7% 0.140 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f589b',
    500: '#2e1971',
    950: '#000000',
  },
}
SCSS
$custom: #2e1971;
$custom-light: #6f589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1971",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 254.318,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30655,
    "c": 0.14049,
    "h": 285.6
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2E1971
secondary
#8EA640
accent
#E741BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1971

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

Preview Lab → · Contrast checker → · Palette generator →

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