#2E138D#2E138D

#2E138D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.180 H 280.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2E138D
RGBrgb(46, 19, 141)
HSLhsl(253, 76%, 31%)
HSVhsv(253, 87%, 55%)
CMYKcmyk(67.4%, 86.5%, 0%, 44.7%)
CIE-LABlab(19.92, 46.08, -61.26)
CIE-LCHlch(19.92, 76.65, 306.95°)
OKLaboklab(33.07% 0.0321 -0.1768)
OKLCHoklch(33.07% 0.18 280.3)
XYZxyz(6.1658, 2.9692, 25.4423)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E138D #728D13
analogous
#13358D #2E138D #6B138D
triadic
#2E138D #8D2E13 #138D2E
tetradic
#2E138D #8D1335 #728D13 #138D6B
square
#2E138D #8D1335 #728D13 #138D6B
split-complementary
#2E138D #8D6B13 #358D13
monochromatic
#0B0421 #1C0C57 #2E138D #401AC3 #5D36E4

Accessibility & contrast

On white

13.17
#2E138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E138D
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E138D#FFFFFF#000000##FFFFFF
##2E138D1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e138d;
/* rgb */ color: rgb(46, 19, 141);
/* oklch */ color: oklch(33.1% 0.180 280.3);
Tailwind
colors: {
  custom: {
    50: '#7657b0',
    500: '#2e138d',
    950: '#000000',
  },
}
SCSS
$custom: #2e138d;
$custom-light: #7657b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e138d",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 253.279,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33072,
    "c": 0.1797,
    "h": 280.3
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#2E138D
secondary
#A3C13B
accent
#F335C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E138D

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

Preview Lab → · Contrast checker → · Palette generator →

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