#2E146B#2E146B

#2E146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.138 H 288.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2E146B
RGBrgb(46, 20, 107)
HSLhsl(258, 69%, 25%)
HSVhsv(258, 81%, 42%)
CMYKcmyk(57%, 81.3%, 0%, 58%)
CIE-LABlab(16.22, 35.48, -45.66)
CIE-LCHlch(16.22, 57.82, 307.85°)
OKLaboklab(29.37% 0.0435 -0.1313)
OKLCHoklch(29.37% 0.138 288.3)
XYZxyz(4.0299, 2.1425, 14.1083)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E146B #516B14
analogous
#14266B #2E146B #5A146B
triadic
#2E146B #6B2E14 #146B2E
tetradic
#2E146B #6B1426 #516B14 #146B5A
square
#2E146B #6B1426 #516B14 #146B5A
split-complementary
#2E146B #6B5A14 #266B14
monochromatic
#0B051A #180A37 #2E146B #441E9F #5A27D2

Accessibility & contrast

On white

14.70
#2E146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E146B
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E146B#FFFFFF#000000##FFFFFF
##2E146B1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#152D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e146b;
/* rgb */ color: rgb(46, 20, 107);
/* oklch */ color: oklch(29.4% 0.138 288.3);
Tailwind
colors: {
  custom: {
    50: '#6f5596',
    500: '#2e146b',
    950: '#000000',
  },
}
SCSS
$custom: #2e146b;
$custom-light: #6f5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2e146b",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 257.931,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29374,
    "c": 0.13835,
    "h": 288.3
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#2E146B
secondary
#83A239
accent
#EB3CB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E146B

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

Preview Lab → · Contrast checker → · Palette generator →

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