#2E168F#2E168F

#2E168F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.180 H 279.6°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#2E168F
RGBrgb(46, 22, 143)
HSLhsl(252, 73%, 32%)
HSVhsv(252, 85%, 56%)
CMYKcmyk(67.8%, 84.6%, 0%, 43.9%)
CIE-LABlab(20.59, 45.40, -61.40)
CIE-LCHlch(20.59, 76.36, 306.48°)
OKLaboklab(33.6% 0.0301 -0.1773)
OKLCHoklch(33.6% 0.18 279.6)
XYZxyz(6.3700, 3.1373, 26.2511)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E168F #778F16
analogous
#163A8F #2E168F #6B168F
triadic
#2E168F #8F2E16 #168F2E
tetradic
#2E168F #8F163A #778F16 #168F6B
square
#2E168F #8F163A #778F16 #168F6B
split-complementary
#2E168F #8F6B16 #3A8F16
monochromatic
#0C0625 #1D0E5A #2E168F #3F1EC4 #5E3EE1

Accessibility & contrast

On white

12.90
#2E168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E168F
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E168F#FFFFFF#000000##FFFFFF
##2E168F1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e168f;
/* rgb */ color: rgb(46, 22, 143);
/* oklch */ color: oklch(33.6% 0.180 279.6);
Tailwind
colors: {
  custom: {
    50: '#7659b1',
    500: '#2e168f',
    950: '#000000',
  },
}
SCSS
$custom: #2e168f;
$custom-light: #7659b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e168f",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 251.901,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33598,
    "c": 0.17981,
    "h": 279.6
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E168F

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

Preview Lab → · Contrast checker → · Palette generator →

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