#2E169E#2E169E

#2E169E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.197 H 277.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2E169E
RGBrgb(46, 22, 158)
HSLhsl(251, 76%, 35%)
HSVhsv(251, 86%, 62%)
CMYKcmyk(70.9%, 86.1%, 0%, 38%)
CIE-LABlab(22.38, 49.81, -67.68)
CIE-LCHlch(22.38, 84.03, 306.35°)
OKLaboklab(35.35% 0.0251 -0.1955)
OKLCHoklch(35.35% 0.197 277.3)
XYZxyz(7.5832, 3.6226, 32.6407)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E169E #869E16
analogous
#16429E #2E169E #72169E
triadic
#2E169E #9E2E16 #169E2E
tetradic
#2E169E #9E1642 #869E16 #169E72
square
#2E169E #9E1642 #869E16 #169E72
split-complementary
#2E169E #9E7216 #429E16
monochromatic
#0F0733 #1E0F68 #2E169E #3E1DD4 #6449E6

Accessibility & contrast

On white

12.18
#2E169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E169E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E169E#FFFFFF#000000##FFFFFF
##2E169E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e169e;
/* rgb */ color: rgb(46, 22, 158);
/* oklch */ color: oklch(35.4% 0.197 277.3);
Tailwind
colors: {
  custom: {
    50: '#795abc',
    500: '#2e169e',
    950: '#000000',
  },
}
SCSS
$custom: #2e169e;
$custom-light: #795abc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e169e",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 250.588,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35351,
    "c": 0.19709,
    "h": 277.3
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#2E169E
secondary
#B1C749
accent
#F236D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E169E

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

Preview Lab → · Contrast checker → · Palette generator →

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