#2E128F#2E128F

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

Color values

HEX#2E128F
RGBrgb(46, 18, 143)
HSLhsl(253, 78%, 32%)
HSVhsv(253, 87%, 56%)
CMYKcmyk(67.8%, 87.4%, 0%, 43.9%)
CIE-LABlab(20.03, 47.05, -62.32)
CIE-LCHlch(20.03, 78.09, 307.05°)
OKLaboklab(33.22% 0.0318 -0.1799)
OKLCHoklch(33.22% 0.183 280)
XYZxyz(6.2994, 2.9961, 26.2276)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E128F #738F12
analogous
#12358F #2E128F #6D128F
triadic
#2E128F #8F2E12 #128F2E
tetradic
#2E128F #8F1235 #738F12 #128F6D
square
#2E128F #8F1235 #738F12 #128F6D
split-complementary
#2E128F #8F6D12 #358F12
monochromatic
#0B0422 #1D0B59 #2E128F #3F19C5 #5D36E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E128F#FFFFFF#000000##FFFFFF
##2E128F1.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)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003B54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e128f;
/* rgb */ color: rgb(46, 18, 143);
/* oklch */ color: oklch(33.2% 0.183 280.0);
Tailwind
colors: {
  custom: {
    50: '#7657b1',
    500: '#2e128f',
    950: '#000000',
  },
}
SCSS
$custom: #2e128f;
$custom-light: #7657b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e128f",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 253.44,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33216,
    "c": 0.18267,
    "h": 280
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#2E128F
secondary
#A4C33A
accent
#F434C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E128F

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

Preview Lab → · Contrast checker → · Palette generator →

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