#2E167F#2E167F

#2E167F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.161 H 282.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2E167F
RGBrgb(46, 22, 127)
HSLhsl(254, 70%, 29%)
HSVhsv(254, 83%, 50%)
CMYKcmyk(63.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.74, 40.59, -54.39)
CIE-LCHlch(18.74, 67.86, 306.73°)
OKLaboklab(31.78% 0.0356 -0.1568)
OKLCHoklch(31.78% 0.161 282.8)
XYZxyz(5.2432, 2.6866, 20.3168)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E167F #677F16
analogous
#16337F #2E167F #63167F
triadic
#2E167F #7F2E16 #167F2E
tetradic
#2E167F #7F1633 #677F16 #167F63
square
#2E167F #7F1633 #677F16 #167F63
split-complementary
#2E167F #7F6316 #337F16
monochromatic
#09051A #1B0D4B #2E167F #411FB3 #5A34DC

Accessibility & contrast

On white

13.66
#2E167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E167F
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E167F#FFFFFF#000000##FFFFFF
##2E167F1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e167f;
/* rgb */ color: rgb(46, 22, 127);
/* oklch */ color: oklch(31.8% 0.161 282.8);
Tailwind
colors: {
  custom: {
    50: '#7357a5',
    500: '#2e167f',
    950: '#000000',
  },
}
SCSS
$custom: #2e167f;
$custom-light: #7357a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e167f",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 253.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31784,
    "c": 0.16083,
    "h": 282.8
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#2E167F
secondary
#99B43D
accent
#ED3BC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E167F

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

Preview Lab → · Contrast checker → · Palette generator →

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