#2E188B#2E188B

#2E188B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.173 H 280.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E188B
RGBrgb(46, 24, 139)
HSLhsl(251, 71%, 32%)
HSVhsv(251, 83%, 55%)
CMYKcmyk(66.9%, 82.7%, 0%, 45.5%)
CIE-LABlab(20.43, 43.29, -59.16)
CIE-LCHlch(20.43, 73.31, 306.19°)
OKLaboklab(33.36% 0.0305 -0.1708)
OKLCHoklch(33.36% 0.173 280.1)
XYZxyz(6.1121, 3.0977, 24.6969)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E188B #758B18
analogous
#183C8B #2E188B #68188B
triadic
#2E188B #8B2E18 #188B2E
tetradic
#2E188B #8B183C #758B18 #188B68
square
#2E188B #8B183C #758B18 #188B68
split-complementary
#2E188B #8B6818 #3C8B18
monochromatic
#0B0623 #1D0F57 #2E188B #3F21BF #5E3FDE

Accessibility & contrast

On white

12.97
#2E188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E188B
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E188B#FFFFFF#000000##FFFFFF
##2E188B1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e188b;
/* rgb */ color: rgb(46, 24, 139);
/* oklch */ color: oklch(33.4% 0.173 280.1);
Tailwind
colors: {
  custom: {
    50: '#7559ae',
    500: '#2e188b',
    950: '#000000',
  },
}
SCSS
$custom: #2e188b;
$custom-light: #7559ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e188b",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 251.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33355,
    "c": 0.17348,
    "h": 280.1
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#2E188B
secondary
#A6BE40
accent
#ED3ACB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E188B

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

Preview Lab → · Contrast checker → · Palette generator →

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