#2E164F#2E164F

#2E164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.100 H 298.9°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#2E164F
RGBrgb(46, 22, 79)
HSLhsl(265, 56%, 20%)
HSVhsv(265, 72%, 31%)
CMYKcmyk(41.8%, 72.2%, 0%, 69%)
CIE-LABlab(13.94, 25.83, -30.65)
CIE-LCHlch(13.94, 40.08, 310.12°)
OKLaboklab(26.93% 0.0481 -0.0873)
OKLCHoklch(26.93% 0.1 298.9)
XYZxyz(2.8246, 1.7191, 7.5786)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E164F #374F16
analogous
#161B4F #2E164F #4B164F
triadic
#2E164F #4F2E16 #164F2E
tetradic
#2E164F #4F161B #374F16 #164F4B
square
#2E164F #4F161B #374F16 #164F4B
split-complementary
#2E164F #4F4B16 #1B4F16
monochromatic
#0E0718 #12091F #2E164F #4A237F #6631AF

Accessibility & contrast

On white

15.63
#2E164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E164F
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E164F#FFFFFF#000000##FFFFFF
##2E164F1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#262330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e164f;
/* rgb */ color: rgb(46, 22, 79);
/* oklch */ color: oklch(26.9% 0.100 298.9);
Tailwind
colors: {
  custom: {
    50: '#6a5581',
    500: '#2e164f',
    950: '#000000',
  },
}
SCSS
$custom: #2e164f;
$custom-light: #6a5581;
$custom-dark: #000000;
JSON
{
  "hex": "#2e164f",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 265.263,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26934,
    "c": 0.0997,
    "h": 298.9
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#2E164F
secondary
#66863A
accent
#E048A0
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E164F

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

Preview Lab → · Contrast checker → · Palette generator →

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