#2E1970#2E1970

#2E1970 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.139 H 285.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1970
RGBrgb(46, 25, 112)
HSLhsl(254, 64%, 27%)
HSVhsv(254, 78%, 44%)
CMYKcmyk(58.9%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.67, 34.37, -46.52)
CIE-LCHlch(17.67, 57.84, 306.46°)
OKLaboklab(30.55% 0.038 -0.1339)
OKLCHoklch(30.55% 0.139 285.8)
XYZxyz(4.3981, 2.4457, 15.5664)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1970 #5B7019
analogous
#192F70 #2E1970 #5A1970
triadic
#2E1970 #702E19 #19702E
tetradic
#2E1970 #70192F #5B7019 #19705A
square
#2E1970 #70192F #5B7019 #19705A
split-complementary
#2E1970 #705A19 #2F7019
monochromatic
#0A0619 #190E3E #2E1970 #4324A2 #5932D1

Accessibility & contrast

On white

14.10
#2E1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1970
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1970#FFFFFF#000000##FFFFFF
##2E19701.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1970;
/* rgb */ color: rgb(46, 25, 112);
/* oklch */ color: oklch(30.6% 0.139 285.8);
Tailwind
colors: {
  custom: {
    50: '#6f589a',
    500: '#2e1970',
    950: '#000000',
  },
}
SCSS
$custom: #2e1970;
$custom-light: #6f589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1970",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 254.483,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30552,
    "c": 0.1392,
    "h": 285.8
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1970

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

Preview Lab → · Contrast checker → · Palette generator →

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