#2E1850#2E1850

#2E1850 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.098 H 297.6°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#2E1850
RGBrgb(46, 24, 80)
HSLhsl(264, 54%, 20%)
HSVhsv(264, 70%, 31%)
CMYKcmyk(42.5%, 70%, 0%, 68.6%)
CIE-LABlab(14.48, 24.90, -30.47)
CIE-LCHlch(14.48, 39.34, 309.25°)
OKLaboklab(27.35% 0.0454 -0.0868)
OKLCHoklch(27.35% 0.098 297.6)
XYZxyz(2.9009, 1.8133, 7.7850)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1850 #3A5018
analogous
#181E50 #2E1850 #4A1850
triadic
#2E1850 #502E18 #18502E
tetradic
#2E1850 #50181E #3A5018 #18504A
square
#2E1850 #50181E #3A5018 #18504A
split-complementary
#2E1850 #504A18 #1E5018
monochromatic
#0E0718 #130A21 #2E1850 #49267F #6434AE

Accessibility & contrast

On white

15.41
#2E1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1850
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1850#FFFFFF#000000##FFFFFF
##2E18501.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#262531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1850;
/* rgb */ color: rgb(46, 24, 80);
/* oklch */ color: oklch(27.3% 0.098 297.6);
Tailwind
colors: {
  custom: {
    50: '#6a5681',
    500: '#2e1850',
    950: '#000000',
  },
}
SCSS
$custom: #2e1850;
$custom-light: #6a5681;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1850",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 263.571,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27348,
    "c": 0.09793,
    "h": 297.6
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#2E1850
secondary
#6A873D
accent
#DD4BA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1850

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

Preview Lab → · Contrast checker → · Palette generator →

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