#2E164D#2E164D

#2E164D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.097 H 299.9°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2E164D
RGBrgb(46, 22, 77)
HSLhsl(266, 56%, 19%)
HSVhsv(266, 71%, 30%)
CMYKcmyk(40.3%, 71.4%, 0%, 69.8%)
CIE-LABlab(13.77, 25.23, -29.55)
CIE-LCHlch(13.77, 38.85, 310.49°)
OKLaboklab(26.76% 0.0483 -0.0841)
OKLCHoklch(26.76% 0.097 299.9)
XYZxyz(2.7528, 1.6905, 7.2010)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E164D #354D16
analogous
#16194D #2E164D #4A164D
triadic
#2E164D #4D2E16 #164D2E
tetradic
#2E164D #4D1619 #354D16 #164D4A
square
#2E164D #4D1619 #354D16 #164D4A
split-complementary
#2E164D #4D4A16 #194D16
monochromatic
#0E0718 #12081D #2E164D #4A247D #6731AC

Accessibility & contrast

On white

15.70
#2E164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E164D
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E164D#FFFFFF#000000##FFFFFF
##2E164D1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#00234C
Tritanopia (blue-blind)
#27222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e164d;
/* rgb */ color: rgb(46, 22, 77);
/* oklch */ color: oklch(26.8% 0.097 299.9);
Tailwind
colors: {
  custom: {
    50: '#6a557f',
    500: '#2e164d',
    950: '#000000',
  },
}
SCSS
$custom: #2e164d;
$custom-light: #6a557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e164d",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 266.182,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26761,
    "c": 0.09699,
    "h": 299.9
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#2E164D
secondary
#64853A
accent
#DF499D
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E164D

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

Preview Lab → · Contrast checker → · Palette generator →

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