#2E164E#2E164E

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

Color values

HEX#2E164E
RGBrgb(46, 22, 78)
HSLhsl(266, 56%, 20%)
HSVhsv(266, 72%, 31%)
CMYKcmyk(41%, 71.8%, 0%, 69.4%)
CIE-LABlab(13.85, 25.53, -30.10)
CIE-LCHlch(13.85, 39.47, 310.30°)
OKLaboklab(26.85% 0.0482 -0.0857)
OKLCHoklch(26.85% 0.098 299.4)
XYZxyz(2.7884, 1.7047, 7.3884)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E164E #364E16
analogous
#161A4E #2E164E #4A164E
triadic
#2E164E #4E2E16 #164E2E
tetradic
#2E164E #4E161A #364E16 #164E4A
square
#2E164E #4E161A #364E16 #164E4A
split-complementary
#2E164E #4E4A16 #1A4E16
monochromatic
#0E0718 #12091E #2E164E #4A237E #6631AD

Accessibility & contrast

On white

15.66
#2E164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E164E
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E164E#FFFFFF#000000##FFFFFF
##2E164E1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#27232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e164e;
/* rgb */ color: rgb(46, 22, 78);
/* oklch */ color: oklch(26.8% 0.098 299.4);
Tailwind
colors: {
  custom: {
    50: '#6a5580',
    500: '#2e164e',
    950: '#000000',
  },
}
SCSS
$custom: #2e164e;
$custom-light: #6a5580;
$custom-dark: #000000;
JSON
{
  "hex": "#2e164e",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 265.714,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26847,
    "c": 0.09835,
    "h": 299.4
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#2E164E
secondary
#65853A
accent
#DF499F
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E164E

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

Preview Lab → · Contrast checker → · Palette generator →

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