#2E186E#2E186E

#2E186E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.138 H 286.6°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2E186E
RGBrgb(46, 24, 110)
HSLhsl(255, 64%, 26%)
HSVhsv(255, 78%, 43%)
CMYKcmyk(58.2%, 78.2%, 0%, 56.9%)
CIE-LABlab(17.27, 34.29, -45.88)
CIE-LCHlch(17.27, 57.28, 306.77°)
OKLaboklab(30.21% 0.0394 -0.132)
OKLCHoklch(30.21% 0.138 286.6)
XYZxyz(4.2670, 2.3597, 14.9794)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E186E #586E18
analogous
#182D6E #2E186E #59186E
triadic
#2E186E #6E2E18 #186E2E
tetradic
#2E186E #6E182D #586E18 #186E59
square
#2E186E #6E182D #586E18 #186E59
split-complementary
#2E186E #6E5918 #2D6E18
monochromatic
#0B0519 #190D3C #2E186E #4323A0 #582FD2

Accessibility & contrast

On white

14.27
#2E186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E186E
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E186E#FFFFFF#000000##FFFFFF
##2E186E1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#113042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e186e;
/* rgb */ color: rgb(46, 24, 110);
/* oklch */ color: oklch(30.2% 0.138 286.6);
Tailwind
colors: {
  custom: {
    50: '#6f5798',
    500: '#2e186e',
    950: '#000000',
  },
}
SCSS
$custom: #2e186e;
$custom-light: #6f5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2e186e",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 255.349,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30208,
    "c": 0.13778,
    "h": 286.6
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#2E186E
secondary
#8AA43E
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E186E

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

Preview Lab → · Contrast checker → · Palette generator →

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