#2E1866#2E1866

#2E1866 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.127 H 289.0°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1866
RGBrgb(46, 24, 102)
HSLhsl(257, 62%, 25%)
HSVhsv(257, 76%, 40%)
CMYKcmyk(54.9%, 76.5%, 0%, 60%)
CIE-LABlab(16.47, 31.77, -41.96)
CIE-LCHlch(16.47, 52.63, 307.13°)
OKLaboklab(29.4% 0.0414 -0.1205)
OKLCHoklch(29.4% 0.127 289)
XYZxyz(3.8509, 2.1932, 12.7882)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1866 #506618
analogous
#182966 #2E1866 #551866
triadic
#2E1866 #662E18 #18662E
tetradic
#2E1866 #661829 #506618 #186655
square
#2E1866 #661829 #506618 #186655
split-complementary
#2E1866 #665518 #296618
monochromatic
#0B0619 #180C34 #2E1866 #442498 #5B2FC9

Accessibility & contrast

On white

14.60
#2E1866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1866
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1866#FFFFFF#000000##FFFFFF
##2E18661.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#192D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1866;
/* rgb */ color: rgb(46, 24, 102);
/* oklch */ color: oklch(29.4% 0.127 289.0);
Tailwind
colors: {
  custom: {
    50: '#6e5792',
    500: '#2e1866',
    950: '#000000',
  },
}
SCSS
$custom: #2e1866;
$custom-light: #6e5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1866",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 256.923,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29397,
    "c": 0.12747,
    "h": 289
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#2E1866
secondary
#819C3E
accent
#E543B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1866

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

Preview Lab → · Contrast checker → · Palette generator →

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