#2E1462#2E1462

#2E1462 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.127 H 291.3°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2E1462
RGBrgb(46, 20, 98)
HSLhsl(260, 66%, 23%)
HSVhsv(260, 80%, 38%)
CMYKcmyk(53.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(15.29, 32.74, -41.25)
CIE-LCHlch(15.29, 52.66, 308.44°)
OKLaboklab(28.44% 0.0462 -0.1184)
OKLCHoklch(28.44% 0.127 291.3)
XYZxyz(3.5808, 1.9629, 11.7431)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1462 #486214
analogous
#142162 #2E1462 #551462
triadic
#2E1462 #622E14 #14622E
tetradic
#2E1462 #621421 #486214 #146255
square
#2E1462 #621421 #486214 #146255
split-complementary
#2E1462 #625514 #216214
monochromatic
#0C0519 #160A2F #2E1462 #461E95 #5E29C8

Accessibility & contrast

On white

15.08
#2E1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1462
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1462#FFFFFF#000000##FFFFFF
##2E14621.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#1C293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1462;
/* rgb */ color: rgb(46, 20, 98);
/* oklch */ color: oklch(28.4% 0.127 291.3);
Tailwind
colors: {
  custom: {
    50: '#6d558f',
    500: '#2e1462',
    950: '#000000',
  },
}
SCSS
$custom: #2e1462;
$custom-light: #6d558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1462",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 260,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28443,
    "c": 0.12714,
    "h": 291.3
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#2E1462
secondary
#799938
accent
#E93FB0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2E1462

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

Preview Lab → · Contrast checker → · Palette generator →

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