#2E168D#2E168D

#2E168D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.177 H 280.0°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2E168D
RGBrgb(46, 22, 141)
HSLhsl(252, 73%, 32%)
HSVhsv(252, 84%, 55%)
CMYKcmyk(67.4%, 84.4%, 0%, 44.7%)
CIE-LABlab(20.35, 44.81, -60.54)
CIE-LCHlch(20.35, 75.32, 306.50°)
OKLaboklab(33.37% 0.0308 -0.1748)
OKLCHoklch(33.37% 0.177 280)
XYZxyz(6.2198, 3.0772, 25.4603)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E168D #758D16
analogous
#163A8D #2E168D #6A168D
triadic
#2E168D #8D2E16 #168D2E
tetradic
#2E168D #8D163A #758D16 #168D6A
square
#2E168D #8D163A #758D16 #168D6A
split-complementary
#2E168D #8D6A16 #3A8D16
monochromatic
#0B0523 #1D0E58 #2E168D #3F1EC2 #5E3DE1

Accessibility & contrast

On white

13.00
#2E168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E168D
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E168D#FFFFFF#000000##FFFFFF
##2E168D1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e168d;
/* rgb */ color: rgb(46, 22, 141);
/* oklch */ color: oklch(33.4% 0.177 280.0);
Tailwind
colors: {
  custom: {
    50: '#7659b0',
    500: '#2e168d',
    950: '#000000',
  },
}
SCSS
$custom: #2e168d;
$custom-light: #7659b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e168d",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 252.101,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33368,
    "c": 0.17747,
    "h": 280
  },
  "luminance": 0.03078
}

Semantic roles & 50–950 ramp

primary
#2E168D
secondary
#A6C13E
accent
#F038CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E168D

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

Preview Lab → · Contrast checker → · Palette generator →

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