#2E1954#2E1954

#2E1954 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.102 H 295.4°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2E1954
RGBrgb(46, 25, 84)
HSLhsl(261, 54%, 21%)
HSVhsv(261, 70%, 33%)
CMYKcmyk(45.2%, 70.2%, 0%, 67.1%)
CIE-LABlab(15.04, 25.51, -32.27)
CIE-LCHlch(15.04, 41.14, 308.33°)
OKLaboklab(27.86% 0.0437 -0.0921)
OKLCHoklch(27.86% 0.102 295.4)
XYZxyz(3.0742, 1.9161, 8.5937)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1954 #3F5419
analogous
#192254 #2E1954 #4C1954
triadic
#2E1954 #542E19 #19542E
tetradic
#2E1954 #541922 #3F5419 #19544C
square
#2E1954 #541922 #3F5419 #19544C
split-complementary
#2E1954 #544C19 #225419
monochromatic
#0D0718 #140B25 #2E1954 #482783 #6235B2

Accessibility & contrast

On white

15.18
#2E1954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E1954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1954
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1954#FFFFFF#000000##FFFFFF
##2E19541.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#242734
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1954;
/* rgb */ color: rgb(46, 25, 84);
/* oklch */ color: oklch(27.9% 0.102 295.4);
Tailwind
colors: {
  custom: {
    50: '#6a5785',
    500: '#2e1954',
    950: '#000000',
  },
}
SCSS
$custom: #2e1954;
$custom-light: #6a5785;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1954",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 261.356,
    "s": 54.128,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27863,
    "c": 0.10192,
    "h": 295.4
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#2E1954
secondary
#6F8A3E
accent
#DD4AA9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1954

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

Preview Lab → · Contrast checker → · Palette generator →

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