#2E167D#2E167D

#2E167D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.158 H 283.2°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2E167D
RGBrgb(46, 22, 125)
HSLhsl(254, 70%, 29%)
HSVhsv(254, 82%, 49%)
CMYKcmyk(63.2%, 82.4%, 0%, 51%)
CIE-LABlab(18.52, 39.98, -53.48)
CIE-LCHlch(18.52, 66.77, 306.78°)
OKLaboklab(31.56% 0.0362 -0.1542)
OKLCHoklch(31.56% 0.158 283.2)
XYZxyz(5.1141, 2.6350, 19.6372)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E167D #657D16
analogous
#16327D #2E167D #62167D
triadic
#2E167D #7D2E16 #167D2E
tetradic
#2E167D #7D1632 #657D16 #167D62
square
#2E167D #7D1632 #657D16 #167D62
split-complementary
#2E167D #7D6216 #327D16
monochromatic
#0A051A #1B0D49 #2E167D #411FB1 #5A32DB

Accessibility & contrast

On white

13.75
#2E167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E167D
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E167D#FFFFFF#000000##FFFFFF
##2E167D1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e167d;
/* rgb */ color: rgb(46, 22, 125);
/* oklch */ color: oklch(31.6% 0.158 283.2);
Tailwind
colors: {
  custom: {
    50: '#7257a4',
    500: '#2e167d',
    950: '#000000',
  },
}
SCSS
$custom: #2e167d;
$custom-light: #7257a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e167d",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 253.981,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31562,
    "c": 0.15841,
    "h": 283.2
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#2E167D
secondary
#97B23D
accent
#ED3BC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E167D

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

Preview Lab → · Contrast checker → · Palette generator →

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