#2E1854#2E1854

#2E1854 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.103 H 295.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1854
RGBrgb(46, 24, 84)
HSLhsl(262, 56%, 21%)
HSVhsv(262, 71%, 33%)
CMYKcmyk(45.2%, 71.4%, 0%, 67.1%)
CIE-LABlab(14.81, 26.13, -32.64)
CIE-LCHlch(14.81, 41.81, 308.68°)
OKLaboklab(27.7% 0.0449 -0.0932)
OKLCHoklch(27.7% 0.103 295.7)
XYZxyz(3.0532, 1.8741, 8.5867)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1854 #3E5418
analogous
#182054 #2E1854 #4C1854
triadic
#2E1854 #542E18 #18542E
tetradic
#2E1854 #541820 #3E5418 #18544C
square
#2E1854 #541820 #3E5418 #18544C
split-complementary
#2E1854 #544C18 #205418
monochromatic
#0D0718 #140A24 #2E1854 #482684 #6233B3

Accessibility & contrast

On white

15.27
#2E1854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1854
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1854#FFFFFF#000000##FFFFFF
##2E18541.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#242633
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1854;
/* rgb */ color: rgb(46, 24, 84);
/* oklch */ color: oklch(27.7% 0.103 295.7);
Tailwind
colors: {
  custom: {
    50: '#6b5685',
    500: '#2e1854',
    950: '#000000',
  },
}
SCSS
$custom: #2e1854;
$custom-light: #6b5685;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1854",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 84
  },
  "hsl": {
    "h": 262,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27698,
    "c": 0.10344,
    "h": 295.7
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#2E1854
secondary
#6E8B3D
accent
#DF49A8
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1854

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

Preview Lab → · Contrast checker → · Palette generator →

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