#2E167B#2E167B

#2E167B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.156 H 283.7°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2E167B
RGBrgb(46, 22, 123)
HSLhsl(254, 70%, 28%)
HSVhsv(254, 82%, 48%)
CMYKcmyk(62.6%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.30, 39.37, -52.57)
CIE-LCHlch(18.30, 65.68, 306.82°)
OKLaboklab(31.34% 0.0369 -0.1516)
OKLCHoklch(31.34% 0.156 283.7)
XYZxyz(4.9877, 2.5844, 18.9711)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E167B #637B16
analogous
#16317B #2E167B #60167B
triadic
#2E167B #7B2E16 #167B2E
tetradic
#2E167B #7B1631 #637B16 #167B60
square
#2E167B #7B1631 #637B16 #167B60
split-complementary
#2E167B #7B6016 #317B16
monochromatic
#0A051A #1B0D47 #2E167B #411FAF #5931DA

Accessibility & contrast

On white

13.84
#2E167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E167B
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E167B#FFFFFF#000000##FFFFFF
##2E167B1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e167b;
/* rgb */ color: rgb(46, 22, 123);
/* oklch */ color: oklch(31.3% 0.156 283.7);
Tailwind
colors: {
  custom: {
    50: '#7257a2',
    500: '#2e167b',
    950: '#000000',
  },
}
SCSS
$custom: #2e167b;
$custom-light: #7257a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e167b",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 254.257,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.15599,
    "h": 283.7
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#2E167B
secondary
#95B03D
accent
#EC3BC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E167B

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

Preview Lab → · Contrast checker → · Palette generator →

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