#2E147F#2E147F

#2E147F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 283.0°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2E147F
RGBrgb(46, 20, 127)
HSLhsl(255, 73%, 29%)
HSVhsv(255, 84%, 50%)
CMYKcmyk(63.8%, 84.3%, 0%, 50.2%)
CIE-LABlab(18.42, 41.52, -54.91)
CIE-LCHlch(18.42, 68.84, 307.09°)
OKLaboklab(31.56% 0.0367 -0.1584)
OKLCHoklch(31.56% 0.163 283)
XYZxyz(5.2064, 2.6131, 20.3046)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E147F #657F14
analogous
#14307F #2E147F #64147F
triadic
#2E147F #7F2E14 #147F2E
tetradic
#2E147F #7F1430 #657F14 #147F64
square
#2E147F #7F1430 #657F14 #147F64
split-complementary
#2E147F #7F6414 #307F14
monochromatic
#0A041A #1B0C4A #2E147F #411CB4 #5A2FDE

Accessibility & contrast

On white

13.79
#2E147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E147F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E147F#FFFFFF#000000##FFFFFF
##2E147F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e147f;
/* rgb */ color: rgb(46, 20, 127);
/* oklch */ color: oklch(31.6% 0.163 283.0);
Tailwind
colors: {
  custom: {
    50: '#7356a5',
    500: '#2e147f',
    950: '#000000',
  },
}
SCSS
$custom: #2e147f;
$custom-light: #7356a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e147f",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 254.579,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31563,
    "c": 0.16256,
    "h": 283
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#2E147F
secondary
#97B43B
accent
#EF38C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E147F

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

Preview Lab → · Contrast checker → · Palette generator →

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