#2E188F#2E188F

#2E188F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.178 H 279.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2E188F
RGBrgb(46, 24, 143)
HSLhsl(251, 71%, 33%)
HSVhsv(251, 83%, 56%)
CMYKcmyk(67.8%, 83.2%, 0%, 43.9%)
CIE-LABlab(20.89, 44.50, -60.89)
CIE-LCHlch(20.89, 75.42, 306.16°)
OKLaboklab(33.81% 0.0292 -0.1758)
OKLCHoklch(33.81% 0.178 279.4)
XYZxyz(6.4097, 3.2167, 26.2644)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E188F #798F18
analogous
#183E8F #2E188F #69188F
triadic
#2E188F #8F2E18 #188F2E
tetradic
#2E188F #8F183E #798F18 #188F69
square
#2E188F #8F183E #798F18 #188F69
split-complementary
#2E188F #8F6918 #3E8F18
monochromatic
#0C0626 #1D0F5B #2E188F #3F21C3 #5F42DF

Accessibility & contrast

On white

12.78
#2E188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E188F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E188F#FFFFFF#000000##FFFFFF
##2E188F1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e188f;
/* rgb */ color: rgb(46, 24, 143);
/* oklch */ color: oklch(33.8% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#765ab1',
    500: '#2e188f',
    950: '#000000',
  },
}
SCSS
$custom: #2e188f;
$custom-light: #765ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e188f",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 251.092,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33809,
    "c": 0.17823,
    "h": 279.4
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#2E188F
secondary
#A9C043
accent
#EE3ACD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E188F

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

Preview Lab → · Contrast checker → · Palette generator →

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