#2E166A#2E166A

#2E166A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.135 H 288.2°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2E166A
RGBrgb(46, 22, 106)
HSLhsl(257, 66%, 25%)
HSVhsv(257, 79%, 42%)
CMYKcmyk(56.6%, 79.2%, 0%, 58.4%)
CIE-LABlab(16.48, 34.13, -44.57)
CIE-LCHlch(16.48, 56.14, 307.44°)
OKLaboklab(29.53% 0.0422 -0.1282)
OKLCHoklch(29.53% 0.135 288.2)
XYZxyz(4.0144, 2.1951, 13.8450)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E166A #526A16
analogous
#16286A #2E166A #58166A
triadic
#2E166A #6A2E16 #166A2E
tetradic
#2E166A #6A1628 #526A16 #166A58
square
#2E166A #6A1628 #526A16 #166A58
split-complementary
#2E166A #6A5816 #286A16
monochromatic
#0B0519 #180B37 #2E166A #44219D #5A2BCF

Accessibility & contrast

On white

14.59
#2E166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E166A
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E166A#FFFFFF#000000##FFFFFF
##2E166A1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#162D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e166a;
/* rgb */ color: rgb(46, 22, 106);
/* oklch */ color: oklch(29.5% 0.135 288.2);
Tailwind
colors: {
  custom: {
    50: '#6e5695',
    500: '#2e166a',
    950: '#000000',
  },
}
SCSS
$custom: #2e166a;
$custom-light: #6e5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2e166a",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 257.143,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29526,
    "c": 0.13494,
    "h": 288.2
  },
  "luminance": 0.02195
}

Semantic roles & 50–950 ramp

primary
#2E166A
secondary
#84A03B
accent
#E93FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E166A

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

Preview Lab → · Contrast checker → · Palette generator →

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