#2E138F#2E138F

#2E138F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.182 H 279.9°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2E138F
RGBrgb(46, 19, 143)
HSLhsl(253, 77%, 32%)
HSVhsv(253, 87%, 56%)
CMYKcmyk(67.8%, 86.7%, 0%, 43.9%)
CIE-LABlab(20.16, 46.66, -62.10)
CIE-LCHlch(20.16, 77.68, 306.92°)
OKLaboklab(33.31% 0.0314 -0.1793)
OKLCHoklch(33.31% 0.182 279.9)
XYZxyz(6.3159, 3.0292, 26.2331)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E138F #748F13
analogous
#13368F #2E138F #6C138F
triadic
#2E138F #8F2E13 #138F2E
tetradic
#2E138F #8F1336 #748F13 #138F6C
square
#2E138F #8F1336 #748F13 #138F6C
split-complementary
#2E138F #8F6C13 #368F13
monochromatic
#0B0523 #1D0C59 #2E138F #3F1AC5 #5D38E5

Accessibility & contrast

On white

13.08
#2E138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E138F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E138F#FFFFFF#000000##FFFFFF
##2E138F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e138f;
/* rgb */ color: rgb(46, 19, 143);
/* oklch */ color: oklch(33.3% 0.182 279.9);
Tailwind
colors: {
  custom: {
    50: '#7657b1',
    500: '#2e138f',
    950: '#000000',
  },
}
SCSS
$custom: #2e138f;
$custom-light: #7657b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e138f",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 253.065,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33307,
    "c": 0.18199,
    "h": 279.9
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#2E138F
secondary
#A5C33B
accent
#F335CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E138F

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

Preview Lab → · Contrast checker → · Palette generator →

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