#2E186D#2E186D

#2E186D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.137 H 286.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2E186D
RGBrgb(46, 24, 109)
HSLhsl(256, 64%, 26%)
HSVhsv(256, 78%, 43%)
CMYKcmyk(57.8%, 78%, 0%, 57.3%)
CIE-LABlab(17.17, 33.98, -45.40)
CIE-LCHlch(17.17, 56.70, 306.81°)
OKLaboklab(30.1% 0.0396 -0.1306)
OKLCHoklch(30.1% 0.137 286.9)
XYZxyz(4.2128, 2.3380, 14.6943)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E186D #576D18
analogous
#182C6D #2E186D #58186D
triadic
#2E186D #6D2E18 #186D2E
tetradic
#2E186D #6D182C #576D18 #186D58
square
#2E186D #6D182C #576D18 #186D58
split-complementary
#2E186D #6D5818 #2C6D18
monochromatic
#0B0619 #190D3B #2E186D #43239F #582ED1

Accessibility & contrast

On white

14.31
#2E186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E186D
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E186D#FFFFFF#000000##FFFFFF
##2E186D1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#122F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e186d;
/* rgb */ color: rgb(46, 24, 109);
/* oklch */ color: oklch(30.1% 0.137 286.9);
Tailwind
colors: {
  custom: {
    50: '#6f5798',
    500: '#2e186d',
    950: '#000000',
  },
}
SCSS
$custom: #2e186d;
$custom-light: #6f5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2e186d",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 255.529,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30105,
    "c": 0.1365,
    "h": 286.9
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#2E186D
secondary
#89A33E
accent
#E741BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E186D

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

Preview Lab → · Contrast checker → · Palette generator →

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