#2E167C#2E167C

#2E167C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.157 H 283.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2E167C
RGBrgb(46, 22, 124)
HSLhsl(254, 70%, 29%)
HSVhsv(254, 82%, 49%)
CMYKcmyk(62.9%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.41, 39.67, -53.03)
CIE-LCHlch(18.41, 66.23, 306.80°)
OKLaboklab(31.45% 0.0365 -0.1529)
OKLCHoklch(31.45% 0.157 283.4)
XYZxyz(5.0506, 2.6096, 19.3024)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E167C #647C16
analogous
#16317C #2E167C #61167C
triadic
#2E167C #7C2E16 #167C2E
tetradic
#2E167C #7C1631 #647C16 #167C61
square
#2E167C #7C1631 #647C16 #167C61
split-complementary
#2E167C #7C6116 #317C16
monochromatic
#0A051A #1B0D48 #2E167C #411FB0 #5A32DB

Accessibility & contrast

On white

13.80
#2E167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E167C
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E167C#FFFFFF#000000##FFFFFF
##2E167C1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e167c;
/* rgb */ color: rgb(46, 22, 124);
/* oklch */ color: oklch(31.5% 0.157 283.4);
Tailwind
colors: {
  custom: {
    50: '#7257a3',
    500: '#2e167c',
    950: '#000000',
  },
}
SCSS
$custom: #2e167c;
$custom-light: #7257a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e167c",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 254.118,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31451,
    "c": 0.15721,
    "h": 283.4
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#2E167C
secondary
#96B13D
accent
#ED3BC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E167C

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

Preview Lab → · Contrast checker → · Palette generator →

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