#2E1056#2E1056

#2E1056 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.117 H 297.2°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1056
RGBrgb(46, 16, 86)
HSLhsl(266, 69%, 20%)
HSVhsv(266, 81%, 34%)
CMYKcmyk(46.5%, 81.4%, 0%, 66.3%)
CIE-LABlab(13.37, 31.26, -36.35)
CIE-LCHlch(13.37, 47.94, 310.70°)
OKLaboklab(26.73% 0.0535 -0.104)
OKLCHoklch(26.73% 0.117 297.2)
XYZxyz(2.9913, 1.6233, 8.9580)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1056 #385610
analogous
#101556 #2E1056 #511056
triadic
#2E1056 #562E10 #10562E
tetradic
#2E1056 #561015 #385610 #105651
square
#2E1056 #561015 #385610 #105651
split-complementary
#2E1056 #565110 #155610
monochromatic
#0E051A #120622 #2E1056 #4A1A8A #6523BD

Accessibility & contrast

On white

15.85
#2E1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1056
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1056#FFFFFF#000000##FFFFFF
##2E10561.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#242332
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1056;
/* rgb */ color: rgb(46, 16, 86);
/* oklch */ color: oklch(26.7% 0.117 297.2);
Tailwind
colors: {
  custom: {
    50: '#6c5286',
    500: '#2e1056',
    950: '#000000',
  },
}
SCSS
$custom: #2e1056;
$custom-light: #6c5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1056",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 265.714,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.26729,
    "c": 0.11696,
    "h": 297.2
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#2E1056
secondary
#688F32
accent
#EB3CA0
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1056

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

Preview Lab → · Contrast checker → · Palette generator →

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