#2E188D#2E188D

#2E188D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.176 H 279.8°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2E188D
RGBrgb(46, 24, 141)
HSLhsl(251, 71%, 32%)
HSVhsv(251, 83%, 55%)
CMYKcmyk(67.4%, 83%, 0%, 44.7%)
CIE-LABlab(20.66, 43.90, -60.03)
CIE-LCHlch(20.66, 74.37, 306.18°)
OKLaboklab(33.58% 0.0299 -0.1733)
OKLCHoklch(33.58% 0.176 279.8)
XYZxyz(6.2595, 3.1567, 25.4736)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E188D #778D18
analogous
#183D8D #2E188D #69188D
triadic
#2E188D #8D2E18 #188D2E
tetradic
#2E188D #8D183D #778D18 #188D69
square
#2E188D #8D183D #778D18 #188D69
split-complementary
#2E188D #8D6918 #3D8D18
monochromatic
#0C0624 #1D0F59 #2E188D #3F21C1 #5E41DF

Accessibility & contrast

On white

12.87
#2E188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E188D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E188D#FFFFFF#000000##FFFFFF
##2E188D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e188d;
/* rgb */ color: rgb(46, 24, 141);
/* oklch */ color: oklch(33.6% 0.176 279.8);
Tailwind
colors: {
  custom: {
    50: '#755ab0',
    500: '#2e188d',
    950: '#000000',
  },
}
SCSS
$custom: #2e188d;
$custom-light: #755ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e188d",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 251.282,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.17586,
    "h": 279.8
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#2E188D
secondary
#A8BF42
accent
#EE3ACC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E188D

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

Preview Lab → · Contrast checker → · Palette generator →

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