#2E2156#2E2156

#2E2156 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.092 H 291.0°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2E2156
RGBrgb(46, 33, 86)
HSLhsl(255, 45%, 23%)
HSVhsv(255, 62%, 34%)
CMYKcmyk(46.5%, 61.6%, 0%, 66.3%)
CIE-LABlab(17.18, 20.91, -30.16)
CIE-LCHlch(17.18, 36.70, 304.73°)
OKLaboklab(29.48% 0.0329 -0.0859)
OKLCHoklch(29.48% 0.092 291)
XYZxyz(3.3498, 2.3403, 9.0775)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2156 #495621
analogous
#212E56 #2E2156 #482156
triadic
#2E2156 #562E21 #21562E
tetradic
#2E2156 #56212E #495621 #215648
square
#2E2156 #56212E #495621 #215648
split-complementary
#2E2156 #564821 #2E5621
monochromatic
#0C0816 #16102A #2E2156 #463282 #5D43AE

Accessibility & contrast

On white

14.31
#2E2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2156
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2156#FFFFFF#000000##FFFFFF
##2E21561.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042B58
Deuteranopia (green-blind)
#062955
Tritanopia (blue-blind)
#232D38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e2156;
/* rgb */ color: rgb(46, 33, 86);
/* oklch */ color: oklch(29.5% 0.092 291.0);
Tailwind
colors: {
  custom: {
    50: '#6a5c86',
    500: '#2e2156',
    950: '#000000',
  },
}
SCSS
$custom: #2e2156;
$custom-light: #6a5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2156",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 254.717,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29476,
    "c": 0.09199,
    "h": 291
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#2E2156
secondary
#7A8A49
accent
#D454B5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2E2156

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

Preview Lab → · Contrast checker → · Palette generator →

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