#2E1062#2E1062

#2E1062 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.132 H 292.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2E1062
RGBrgb(46, 16, 98)
HSLhsl(262, 72%, 22%)
HSVhsv(262, 84%, 38%)
CMYKcmyk(53.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.59, 34.76, -42.41)
CIE-LCHlch(14.59, 54.84, 309.34°)
OKLaboklab(27.95% 0.0497 -0.1218)
OKLCHoklch(27.95% 0.132 292.2)
XYZxyz(3.5160, 1.8331, 11.7215)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1062 #446210
analogous
#101B62 #2E1062 #571062
triadic
#2E1062 #622E10 #10622E
tetradic
#2E1062 #62101B #446210 #106257
square
#2E1062 #62101B #446210 #106257
split-complementary
#2E1062 #625710 #1B6210
monochromatic
#0C041A #15072D #2E1062 #471997 #5F21CB

Accessibility & contrast

On white

15.37
#2E1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1062
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1062#FFFFFF#000000##FFFFFF
##2E10621.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#1D2739
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1062;
/* rgb */ color: rgb(46, 16, 98);
/* oklch */ color: oklch(28.0% 0.132 292.2);
Tailwind
colors: {
  custom: {
    50: '#6d528f',
    500: '#2e1062',
    950: '#000000',
  },
}
SCSS
$custom: #2e1062;
$custom-light: #6d528f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1062",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 261.951,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2795,
    "c": 0.13153,
    "h": 292.2
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#2E1062
secondary
#759B33
accent
#EF39AC
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2E1062

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

Preview Lab → · Contrast checker → · Palette generator →

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