#2E186A#2E186A

#2E186A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.133 H 287.7°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2E186A
RGBrgb(46, 24, 106)
HSLhsl(256, 63%, 25%)
HSVhsv(256, 77%, 42%)
CMYKcmyk(56.6%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.87, 33.03, -43.94)
CIE-LCHlch(16.87, 54.97, 306.94°)
OKLaboklab(29.8% 0.0404 -0.1263)
OKLCHoklch(29.8% 0.133 287.7)
XYZxyz(4.0541, 2.2745, 13.8583)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E186A #546A18
analogous
#182B6A #2E186A #57186A
triadic
#2E186A #6A2E18 #186A2E
tetradic
#2E186A #6A182B #546A18 #186A57
square
#2E186A #6A182B #546A18 #186A57
split-complementary
#2E186A #6A5718 #2B6A18
monochromatic
#0B0619 #180D38 #2E186A #44239C #592FCE

Accessibility & contrast

On white

14.43
#2E186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E186A
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E186A#FFFFFF#000000##FFFFFF
##2E186A1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#162E3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e186a;
/* rgb */ color: rgb(46, 24, 106);
/* oklch */ color: oklch(29.8% 0.133 287.7);
Tailwind
colors: {
  custom: {
    50: '#6e5795',
    500: '#2e186a',
    950: '#000000',
  },
}
SCSS
$custom: #2e186a;
$custom-light: #6e5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2e186a",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 256.098,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29799,
    "c": 0.13265,
    "h": 287.7
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#2E186A
secondary
#86A03E
accent
#E642BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E186A

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

Preview Lab → · Contrast checker → · Palette generator →

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