#2E1851#2E1851

#2E1851 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.099 H 297.1°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1851
RGBrgb(46, 24, 81)
HSLhsl(263, 54%, 21%)
HSVhsv(263, 70%, 32%)
CMYKcmyk(43.2%, 70.4%, 0%, 68.2%)
CIE-LABlab(14.56, 25.21, -31.01)
CIE-LCHlch(14.56, 39.97, 309.10°)
OKLaboklab(27.43% 0.0453 -0.0884)
OKLCHoklch(27.43% 0.099 297.1)
XYZxyz(2.9382, 1.8281, 7.9811)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1851 #3B5118
analogous
#181E51 #2E1851 #4A1851
triadic
#2E1851 #512E18 #18512E
tetradic
#2E1851 #51181E #3B5118 #18514A
square
#2E1851 #51181E #3B5118 #18514A
split-complementary
#2E1851 #514A18 #1E5118
monochromatic
#0D0718 #130A22 #2E1851 #492680 #6434AF

Accessibility & contrast

On white

15.38
#2E1851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1851
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1851#FFFFFF#000000##FFFFFF
##2E18511.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#252532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1851;
/* rgb */ color: rgb(46, 24, 81);
/* oklch */ color: oklch(27.4% 0.099 297.1);
Tailwind
colors: {
  custom: {
    50: '#6a5682',
    500: '#2e1851',
    950: '#000000',
  },
}
SCSS
$custom: #2e1851;
$custom-light: #6a5682;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1851",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 81
  },
  "hsl": {
    "h": 263.158,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27434,
    "c": 0.09931,
    "h": 297.1
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#2E1851
secondary
#6B883D
accent
#DE4AA5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1851

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

Preview Lab → · Contrast checker → · Palette generator →

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