#2E188A#2E188A

#2E188A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.172 H 280.3°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2E188A
RGBrgb(46, 24, 138)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 83%, 54%)
CMYKcmyk(66.7%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.32, 42.98, -58.72)
CIE-LCHlch(20.32, 72.77, 306.20°)
OKLaboklab(33.24% 0.0308 -0.1695)
OKLCHoklch(33.24% 0.172 280.3)
XYZxyz(6.0393, 3.0686, 24.3139)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E188A #748A18
analogous
#183B8A #2E188A #67188A
triadic
#2E188A #8A2E18 #188A2E
tetradic
#2E188A #8A183B #748A18 #188A67
square
#2E188A #8A183B #748A18 #188A67
split-complementary
#2E188A #8A6718 #3B8A18
monochromatic
#0B0622 #1D0F56 #2E188A #3F21BE #5D3FDE

Accessibility & contrast

On white

13.01
#2E188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E188A
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E188A#FFFFFF#000000##FFFFFF
##2E188A1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e188a;
/* rgb */ color: rgb(46, 24, 138);
/* oklch */ color: oklch(33.2% 0.172 280.3);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#2e188a',
    950: '#000000',
  },
}
SCSS
$custom: #2e188a;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e188a",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 251.579,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.17229,
    "h": 280.3
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#2E188A
secondary
#A5BD40
accent
#ED3BCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E188A

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

Preview Lab → · Contrast checker → · Palette generator →

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