#2E186F#2E186F

#2E186F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.139 H 286.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2E186F
RGBrgb(46, 24, 111)
HSLhsl(255, 64%, 26%)
HSVhsv(255, 78%, 44%)
CMYKcmyk(58.6%, 78.4%, 0%, 56.5%)
CIE-LABlab(17.37, 34.60, -46.36)
CIE-LCHlch(17.37, 57.85, 306.74°)
OKLaboklab(30.31% 0.0391 -0.1335)
OKLCHoklch(30.31% 0.139 286.3)
XYZxyz(4.3217, 2.3816, 15.2678)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E186F #596F18
analogous
#182E6F #2E186F #5A186F
triadic
#2E186F #6F2E18 #186F2E
tetradic
#2E186F #6F182E #596F18 #186F5A
square
#2E186F #6F182E #596F18 #186F5A
split-complementary
#2E186F #6F5A18 #2E6F18
monochromatic
#0A0519 #190D3D #2E186F #4323A1 #582FD2

Accessibility & contrast

On white

14.22
#2E186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E186F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E186F#FFFFFF#000000##FFFFFF
##2E186F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#103042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e186f;
/* rgb */ color: rgb(46, 24, 111);
/* oklch */ color: oklch(30.3% 0.139 286.3);
Tailwind
colors: {
  custom: {
    50: '#6f5899',
    500: '#2e186f',
    950: '#000000',
  },
}
SCSS
$custom: #2e186f;
$custom-light: #6f5899;
$custom-dark: #000000;
JSON
{
  "hex": "#2e186f",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 255.172,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30311,
    "c": 0.13905,
    "h": 286.3
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#2E186F
secondary
#8BA53E
accent
#E740BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E186F

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

Preview Lab → · Contrast checker → · Palette generator →

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