#2E138E#2E138E

#2E138E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.181 H 280.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2E138E
RGBrgb(46, 19, 142)
HSLhsl(253, 76%, 32%)
HSVhsv(253, 87%, 56%)
CMYKcmyk(67.6%, 86.6%, 0%, 44.3%)
CIE-LABlab(20.04, 46.37, -61.68)
CIE-LCHlch(20.04, 77.16, 306.93°)
OKLaboklab(33.19% 0.0318 -0.178)
OKLCHoklch(33.19% 0.181 280.1)
XYZxyz(6.2405, 2.9991, 25.8360)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E138E #738E13
analogous
#13358E #2E138E #6C138E
triadic
#2E138E #8E2E13 #138E2E
tetradic
#2E138E #8E1335 #738E13 #138E6C
square
#2E138E #8E1335 #738E13 #138E6C
split-complementary
#2E138E #8E6C13 #358E13
monochromatic
#0B0522 #1D0C58 #2E138E #3F1AC4 #5D37E4

Accessibility & contrast

On white

13.13
#2E138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E138E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E138E#FFFFFF#000000##FFFFFF
##2E138E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e138e;
/* rgb */ color: rgb(46, 19, 142);
/* oklch */ color: oklch(33.2% 0.181 280.1);
Tailwind
colors: {
  custom: {
    50: '#7657b0',
    500: '#2e138e',
    950: '#000000',
  },
}
SCSS
$custom: #2e138e;
$custom-light: #7657b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e138e",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 253.171,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3319,
    "c": 0.18084,
    "h": 280.1
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E138E

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

Preview Lab → · Contrast checker → · Palette generator →

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