#2E144A#2E144A

#2E144A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.096 H 302.3°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2E144A
RGBrgb(46, 20, 74)
HSLhsl(269, 57%, 18%)
HSVhsv(269, 73%, 29%)
CMYKcmyk(37.8%, 73%, 0%, 71%)
CIE-LABlab(13.08, 25.55, -28.60)
CIE-LCHlch(13.08, 38.35, 311.78°)
OKLaboklab(26.18% 0.0513 -0.0813)
OKLCHoklch(26.18% 0.096 302.3)
XYZxyz(2.6126, 1.5756, 6.6437)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E144A #304A14
analogous
#14154A #2E144A #49144A
triadic
#2E144A #4A2E14 #144A2E
tetradic
#2E144A #4A1415 #304A14 #144A49
square
#2E144A #4A1415 #304A14 #144A49
split-complementary
#2E144A #4A4914 #154A14
monochromatic
#0F0718 #10071A #2E144A #4C217A #6A2EAA

Accessibility & contrast

On white

15.97
#2E144A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E144A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E144A
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E144A#FFFFFF#000000##FFFFFF
##2E144A1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#012249
Tritanopia (blue-blind)
#28202D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e144a;
/* rgb */ color: rgb(46, 20, 74);
/* oklch */ color: oklch(26.2% 0.096 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a537d',
    500: '#2e144a',
    950: '#000000',
  },
}
SCSS
$custom: #2e144a;
$custom-light: #6a537d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e144a",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 74
  },
  "hsl": {
    "h": 268.889,
    "s": 57.447,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26184,
    "c": 0.09614,
    "h": 302.3
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#2E144A
secondary
#5E8238
accent
#E14797
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E144A

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

Preview Lab → · Contrast checker → · Palette generator →

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