#2E1054#2E1054

#2E1054 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 298.2°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#2E1054
RGBrgb(46, 16, 84)
HSLhsl(266, 68%, 20%)
HSVhsv(266, 81%, 33%)
CMYKcmyk(45.2%, 81%, 0%, 67.1%)
CIE-LABlab(13.18, 30.68, -35.30)
CIE-LCHlch(13.18, 46.77, 310.99°)
OKLaboklab(26.53% 0.054 -0.101)
OKLCHoklch(26.53% 0.115 298.2)
XYZxyz(2.9118, 1.5915, 8.5396)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1054 #365410
analogous
#101454 #2E1054 #501054
triadic
#2E1054 #542E10 #10542E
tetradic
#2E1054 #541014 #365410 #105450
square
#2E1054 #541014 #365410 #105450
split-complementary
#2E1054 #545010 #145410
monochromatic
#0E051A #120621 #2E1054 #4A1A87 #6624BB

Accessibility & contrast

On white

15.93
#2E1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1054
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1054#FFFFFF#000000##FFFFFF
##2E10541.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#242231
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1054;
/* rgb */ color: rgb(46, 16, 84);
/* oklch */ color: oklch(26.5% 0.115 298.2);
Tailwind
colors: {
  custom: {
    50: '#6b5285',
    500: '#2e1054',
    950: '#000000',
  },
}
SCSS
$custom: #2e1054;
$custom-light: #6b5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1054",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 266.471,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26534,
    "c": 0.11451,
    "h": 298.2
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#2E1054
secondary
#658E32
accent
#EB3D9E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1054

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

Preview Lab → · Contrast checker → · Palette generator →

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