#2E164B#2E164B

#2E164B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.094 H 301.0°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2E164B
RGBrgb(46, 22, 75)
HSLhsl(267, 55%, 19%)
HSVhsv(267, 71%, 29%)
CMYKcmyk(38.7%, 70.7%, 0%, 70.6%)
CIE-LABlab(13.61, 24.63, -28.44)
CIE-LCHlch(13.61, 37.62, 310.90°)
OKLaboklab(26.59% 0.0486 -0.0808)
OKLCHoklch(26.59% 0.094 301)
XYZxyz(2.6833, 1.6626, 6.8348)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E164B #334B16
analogous
#16194B #2E164B #49164B
triadic
#2E164B #4B2E16 #164B2E
tetradic
#2E164B #4B1619 #334B16 #164B49
square
#2E164B #4B1619 #334B16 #164B49
split-complementary
#2E164B #4B4916 #194B16
monochromatic
#0F0718 #11081C #2E164B #4B247A #6832AA

Accessibility & contrast

On white

15.76
#2E164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E164B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E164B
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E164B#FFFFFF#000000##FFFFFF
##2E164B1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#03224A
Tritanopia (blue-blind)
#28222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e164b;
/* rgb */ color: rgb(46, 22, 75);
/* oklch */ color: oklch(26.6% 0.094 301.0);
Tailwind
colors: {
  custom: {
    50: '#69557e',
    500: '#2e164b',
    950: '#000000',
  },
}
SCSS
$custom: #2e164b;
$custom-light: #69557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e164b",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 267.17,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2659,
    "c": 0.09427,
    "h": 301
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#2E164B
secondary
#62833A
accent
#DE4A9B
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2E164B

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

Preview Lab → · Contrast checker → · Palette generator →

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