#2E166F#2E166F

#2E166F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.141 H 286.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2E166F
RGBrgb(46, 22, 111)
HSLhsl(256, 67%, 26%)
HSVhsv(256, 80%, 44%)
CMYKcmyk(58.6%, 80.2%, 0%, 56.5%)
CIE-LABlab(17.00, 35.68, -46.98)
CIE-LCHlch(17.00, 58.99, 307.21°)
OKLaboklab(30.05% 0.0407 -0.1352)
OKLCHoklch(30.05% 0.141 286.7)
XYZxyz(4.2820, 2.3021, 15.2546)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E166F #576F16
analogous
#162A6F #2E166F #5A166F
triadic
#2E166F #6F2E16 #166F2E
tetradic
#2E166F #6F162A #576F16 #166F5A
square
#2E166F #6F162A #576F16 #166F5A
split-complementary
#2E166F #6F5A16 #2A6F16
monochromatic
#0B051A #190C3C #2E166F #4320A2 #582BD5

Accessibility & contrast

On white

14.38
#2E166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E166F
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E166F#FFFFFF#000000##FFFFFF
##2E166F1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#102F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e166f;
/* rgb */ color: rgb(46, 22, 111);
/* oklch */ color: oklch(30.0% 0.141 286.7);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2e166f',
    950: '#000000',
  },
}
SCSS
$custom: #2e166f;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2e166f",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 256.18,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30048,
    "c": 0.14122,
    "h": 286.7
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#2E166F
secondary
#89A53C
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E166F

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

Preview Lab → · Contrast checker → · Palette generator →

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