#2E168C#2E168C

#2E168C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.176 H 280.2°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2E168C
RGBrgb(46, 22, 140)
HSLhsl(252, 73%, 32%)
HSVhsv(252, 84%, 55%)
CMYKcmyk(67.1%, 84.3%, 0%, 45.1%)
CIE-LABlab(20.23, 44.51, -60.11)
CIE-LCHlch(20.23, 74.79, 306.52°)
OKLaboklab(33.25% 0.0312 -0.1735)
OKLCHoklch(33.25% 0.176 280.2)
XYZxyz(6.1457, 3.0476, 25.0702)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E168C #748C16
analogous
#16398C #2E168C #69168C
triadic
#2E168C #8C2E16 #168C2E
tetradic
#2E168C #8C1639 #748C16 #168C69
square
#2E168C #8C1639 #748C16 #168C69
split-complementary
#2E168C #8C6916 #398C16
monochromatic
#0B0522 #1D0E57 #2E168C #3F1EC1 #5D3CE0

Accessibility & contrast

On white

13.05
#2E168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E168C
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E168C#FFFFFF#000000##FFFFFF
##2E168C1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e168c;
/* rgb */ color: rgb(46, 22, 140);
/* oklch */ color: oklch(33.3% 0.176 280.2);
Tailwind
colors: {
  custom: {
    50: '#7558af',
    500: '#2e168c',
    950: '#000000',
  },
}
SCSS
$custom: #2e168c;
$custom-light: #7558af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e168c",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 252.203,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33253,
    "c": 0.1763,
    "h": 280.2
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#2E168C
secondary
#A5C03E
accent
#F038CA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E168C

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

Preview Lab → · Contrast checker → · Palette generator →

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