#2E138A#2E138A

#2E138A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.176 H 280.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#2E138A
RGBrgb(46, 19, 138)
HSLhsl(254, 76%, 31%)
HSVhsv(254, 86%, 54%)
CMYKcmyk(66.7%, 86.2%, 0%, 45.9%)
CIE-LABlab(19.56, 45.20, -59.97)
CIE-LCHlch(19.56, 75.10, 307.01°)
OKLaboklab(32.72% 0.0332 -0.1731)
OKLCHoklch(32.72% 0.176 280.9)
XYZxyz(5.9456, 2.8811, 24.2826)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E138A #6F8A13
analogous
#13348A #2E138A #69138A
triadic
#2E138A #8A2E13 #138A2E
tetradic
#2E138A #8A1334 #6F8A13 #138A69
square
#2E138A #8A1334 #6F8A13 #138A69
split-complementary
#2E138A #8A6913 #348A13
monochromatic
#0A041E #1C0C54 #2E138A #401AC0 #5C34E3

Accessibility & contrast

On white

13.32
#2E138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E138A
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E138A#FFFFFF#000000##FFFFFF
##2E138A1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003951
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e138a;
/* rgb */ color: rgb(46, 19, 138);
/* oklch */ color: oklch(32.7% 0.176 280.9);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2e138a',
    950: '#000000',
  },
}
SCSS
$custom: #2e138a;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e138a",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 253.613,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32722,
    "c": 0.17623,
    "h": 280.9
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#2E138A
secondary
#A0BE3A
accent
#F235C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2E138A

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

Preview Lab → · Contrast checker → · Palette generator →

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