#2E168E#2E168E

#2E168E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.179 H 279.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2E168E
RGBrgb(46, 22, 142)
HSLhsl(252, 73%, 32%)
HSVhsv(252, 85%, 56%)
CMYKcmyk(67.6%, 84.5%, 0%, 44.3%)
CIE-LABlab(20.47, 45.10, -60.97)
CIE-LCHlch(20.47, 75.84, 306.49°)
OKLaboklab(33.48% 0.0305 -0.176)
OKLCHoklch(33.48% 0.179 279.8)
XYZxyz(6.2946, 3.1071, 25.8540)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E168E #768E16
analogous
#163A8E #2E168E #6A168E
triadic
#2E168E #8E2E16 #168E2E
tetradic
#2E168E #8E163A #768E16 #168E6A
square
#2E168E #8E163A #768E16 #168E6A
split-complementary
#2E168E #8E6A16 #3A8E16
monochromatic
#0C0624 #1D0E59 #2E168E #3F1EC3 #5E3DE1

Accessibility & contrast

On white

12.95
#2E168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E168E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E168E#FFFFFF#000000##FFFFFF
##2E168E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e168e;
/* rgb */ color: rgb(46, 22, 142);
/* oklch */ color: oklch(33.5% 0.179 279.8);
Tailwind
colors: {
  custom: {
    50: '#7659b0',
    500: '#2e168e',
    950: '#000000',
  },
}
SCSS
$custom: #2e168e;
$custom-light: #7659b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e168e",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 252,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33483,
    "c": 0.17864,
    "h": 279.8
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E168E

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

Preview Lab → · Contrast checker → · Palette generator →

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