#2E166B#2E166B

#2E166B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.136 H 287.9°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2E166B
RGBrgb(46, 22, 107)
HSLhsl(257, 66%, 25%)
HSVhsv(257, 79%, 42%)
CMYKcmyk(57%, 79.4%, 0%, 58%)
CIE-LABlab(16.58, 34.44, -45.06)
CIE-LCHlch(16.58, 56.71, 307.39°)
OKLaboklab(29.63% 0.0419 -0.1296)
OKLCHoklch(29.63% 0.136 287.9)
XYZxyz(4.0667, 2.2160, 14.1205)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E166B #536B16
analogous
#16296B #2E166B #58166B
triadic
#2E166B #6B2E16 #166B2E
tetradic
#2E166B #6B1629 #536B16 #166B58
square
#2E166B #6B1629 #536B16 #166B58
split-complementary
#2E166B #6B5816 #296B16
monochromatic
#0B0519 #180C38 #2E166B #44209E #5A2BD1

Accessibility & contrast

On white

14.55
#2E166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E166B
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E166B#FFFFFF#000000##FFFFFF
##2E166B1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#152E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e166b;
/* rgb */ color: rgb(46, 22, 107);
/* oklch */ color: oklch(29.6% 0.136 287.9);
Tailwind
colors: {
  custom: {
    50: '#6f5696',
    500: '#2e166b',
    950: '#000000',
  },
}
SCSS
$custom: #2e166b;
$custom-light: #6f5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2e166b",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 256.941,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2963,
    "c": 0.13621,
    "h": 287.9
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#2E166B
secondary
#85A13B
accent
#E93FB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E166B

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

Preview Lab → · Contrast checker → · Palette generator →

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