#2E186B#2E186B

#2E186B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.134 H 287.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2E186B
RGBrgb(46, 24, 107)
HSLhsl(256, 63%, 26%)
HSVhsv(256, 78%, 42%)
CMYKcmyk(57%, 77.6%, 0%, 58%)
CIE-LABlab(16.97, 33.35, -44.43)
CIE-LCHlch(16.97, 55.55, 306.89°)
OKLaboklab(29.9% 0.0402 -0.1278)
OKLCHoklch(29.9% 0.134 287.4)
XYZxyz(4.1064, 2.2954, 14.1338)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E186B #556B18
analogous
#182B6B #2E186B #57186B
triadic
#2E186B #6B2E18 #186B2E
tetradic
#2E186B #6B182B #556B18 #186B57
square
#2E186B #6B182B #556B18 #186B57
split-complementary
#2E186B #6B5718 #2B6B18
monochromatic
#0B0619 #190D39 #2E186B #43239D #592ECF

Accessibility & contrast

On white

14.39
#2E186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E186B
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E186B#FFFFFF#000000##FFFFFF
##2E186B1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#152F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e186b;
/* rgb */ color: rgb(46, 24, 107);
/* oklch */ color: oklch(29.9% 0.134 287.4);
Tailwind
colors: {
  custom: {
    50: '#6e5796',
    500: '#2e186b',
    950: '#000000',
  },
}
SCSS
$custom: #2e186b;
$custom-light: #6e5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2e186b",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 255.904,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.299,
    "c": 0.13394,
    "h": 287.4
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#2E186B
secondary
#87A13E
accent
#E641BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E186B

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

Preview Lab → · Contrast checker → · Palette generator →

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