#2E1076#2E1076

#2E1076 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.155 H 285.8°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2E1076
RGBrgb(46, 16, 118)
HSLhsl(258, 76%, 26%)
HSVhsv(258, 86%, 46%)
CMYKcmyk(61%, 86.4%, 0%, 53.7%)
CIE-LABlab(16.79, 40.61, -51.85)
CIE-LCHlch(16.79, 65.86, 308.07°)
OKLaboklab(30.14% 0.0423 -0.1494)
OKLCHoklch(30.14% 0.155 285.8)
XYZxyz(4.5810, 2.2592, 17.3307)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1076 #587610
analogous
#102576 #2E1076 #611076
triadic
#2E1076 #762E10 #10762E
tetradic
#2E1076 #761025 #587610 #107661
square
#2E1076 #761025 #587610 #107661
split-complementary
#2E1076 #766110 #257610
monochromatic
#0B041B #190940 #2E1076 #4317AC #5820E1

Accessibility & contrast

On white

14.46
#2E1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E1076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1076
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1076#FFFFFF#000000##FFFFFF
##2E10761.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#053045
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1076;
/* rgb */ color: rgb(46, 16, 118);
/* oklch */ color: oklch(30.1% 0.155 285.8);
Tailwind
colors: {
  custom: {
    50: '#71549f',
    500: '#2e1076',
    950: '#000000',
  },
}
SCSS
$custom: #2e1076;
$custom-light: #71549f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1076",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 257.647,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30135,
    "c": 0.15525,
    "h": 285.8
  },
  "luminance": 0.02259
}

Semantic roles & 50–950 ramp

primary
#2E1076
secondary
#8AAD35
accent
#F335BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2E1076

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

Preview Lab → · Contrast checker → · Palette generator →

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