#2E118E#2E118E

#2E118E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.182 H 280.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#2E118E
RGBrgb(46, 17, 142)
HSLhsl(254, 79%, 31%)
HSVhsv(254, 88%, 56%)
CMYKcmyk(67.6%, 88%, 0%, 44.3%)
CIE-LABlab(19.78, 47.14, -62.11)
CIE-LCHlch(19.78, 77.98, 307.20°)
OKLaboklab(33.01% 0.0326 -0.1793)
OKLCHoklch(33.01% 0.182 280.3)
XYZxyz(6.2081, 2.9342, 25.8251)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E118E #718E11
analogous
#11328E #2E118E #6C118E
triadic
#2E118E #8E2E11 #118E2E
tetradic
#2E118E #8E1132 #718E11 #118E6C
square
#2E118E #8E1132 #718E11 #118E6C
split-complementary
#2E118E #8E6C11 #328E11
monochromatic
#0B0421 #1C0A57 #2E118E #4018C5 #5D33E7

Accessibility & contrast

On white

13.23
#2E118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E118E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E118E#FFFFFF#000000##FFFFFF
##2E118E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003A53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e118e;
/* rgb */ color: rgb(46, 17, 142);
/* oklch */ color: oklch(33.0% 0.182 280.3);
Tailwind
colors: {
  custom: {
    50: '#7656b0',
    500: '#2e118e',
    950: '#000000',
  },
}
SCSS
$custom: #2e118e;
$custom-light: #7656b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e118e",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 253.92,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33011,
    "c": 0.18219,
    "h": 280.3
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#2E118E
secondary
#A2C238
accent
#F533C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E118E

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

Preview Lab → · Contrast checker → · Palette generator →

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