#2E128D#2E128D

#2E128D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.180 H 280.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#2E128D
RGBrgb(46, 18, 141)
HSLhsl(254, 77%, 31%)
HSVhsv(254, 87%, 55%)
CMYKcmyk(67.4%, 87.2%, 0%, 44.7%)
CIE-LABlab(19.79, 46.47, -61.48)
CIE-LCHlch(19.79, 77.07, 307.09°)
OKLaboklab(32.98% 0.0325 -0.1774)
OKLCHoklch(32.98% 0.18 280.4)
XYZxyz(6.1492, 2.9360, 25.4368)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E128D #718D12
analogous
#12338D #2E128D #6B128D
triadic
#2E128D #8D2E12 #128D2E
tetradic
#2E128D #8D1233 #718D12 #128D6B
square
#2E128D #8D1233 #718D12 #128D6B
split-complementary
#2E128D #8D6B12 #338D12
monochromatic
#0B0420 #1C0B57 #2E128D #4019C3 #5D34E5

Accessibility & contrast

On white

13.23
#2E128D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E128D
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E128D#FFFFFF#000000##FFFFFF
##2E128D1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e128d;
/* rgb */ color: rgb(46, 18, 141);
/* oklch */ color: oklch(33.0% 0.180 280.4);
Tailwind
colors: {
  custom: {
    50: '#7657b0',
    500: '#2e128d',
    950: '#000000',
  },
}
SCSS
$custom: #2e128d;
$custom-light: #7657b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e128d",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 141
  },
  "hsl": {
    "h": 253.659,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32981,
    "c": 0.18038,
    "h": 280.4
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#2E128D
secondary
#A2C139
accent
#F434C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2E128D

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

Preview Lab → · Contrast checker → · Palette generator →

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