#2E1862#2E1862

#2E1862 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.122 H 290.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1862
RGBrgb(46, 24, 98)
HSLhsl(258, 61%, 24%)
HSVhsv(258, 76%, 38%)
CMYKcmyk(53.1%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.08, 30.51, -39.95)
CIE-LCHlch(16.08, 50.27, 307.37°)
OKLaboklab(29% 0.0424 -0.1147)
OKLCHoklch(29% 0.122 290.3)
XYZxyz(3.6573, 2.1158, 11.7686)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1862 #4C6218
analogous
#182762 #2E1862 #531862
triadic
#2E1862 #622E18 #18622E
tetradic
#2E1862 #621827 #4C6218 #186253
square
#2E1862 #621827 #4C6218 #186253
split-complementary
#2E1862 #625318 #276218
monochromatic
#0C0619 #170C31 #2E1862 #452493 #5C30C4

Accessibility & contrast

On white

14.76
#2E1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1862
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1862#FFFFFF#000000##FFFFFF
##2E18621.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#1C2B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1862;
/* rgb */ color: rgb(46, 24, 98);
/* oklch */ color: oklch(29.0% 0.122 290.3);
Tailwind
colors: {
  custom: {
    50: '#6d578f',
    500: '#2e1862',
    950: '#000000',
  },
}
SCSS
$custom: #2e1862;
$custom-light: #6d578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1862",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 257.838,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29004,
    "c": 0.12223,
    "h": 290.3
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#2E1862
secondary
#7D983E
accent
#E444B4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1862

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

Preview Lab → · Contrast checker → · Palette generator →

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