#2E145A#2E145A

#2E145A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.117 H 294.4°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2E145A
RGBrgb(46, 20, 90)
HSLhsl(262, 64%, 22%)
HSVhsv(262, 78%, 35%)
CMYKcmyk(48.9%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.51, 30.32, -37.19)
CIE-LCHlch(14.51, 47.98, 309.19°)
OKLaboklab(27.65% 0.0483 -0.1065)
OKLCHoklch(27.65% 0.117 294.4)
XYZxyz(3.2218, 1.8192, 9.8523)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E145A #405A14
analogous
#141D5A #2E145A #51145A
triadic
#2E145A #5A2E14 #145A2E
tetradic
#2E145A #5A141D #405A14 #145A51
square
#2E145A #5A141D #405A14 #145A51
split-complementary
#2E145A #5A5114 #1D5A14
monochromatic
#0D0619 #140928 #2E145A #481F8C #612ABE

Accessibility & contrast

On white

15.40
#2E145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E145A
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E145A#FFFFFF#000000##FFFFFF
##2E145A1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#212635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e145a;
/* rgb */ color: rgb(46, 20, 90);
/* oklch */ color: oklch(27.7% 0.117 294.4);
Tailwind
colors: {
  custom: {
    50: '#6c5489',
    500: '#2e145a',
    950: '#000000',
  },
}
SCSS
$custom: #2e145a;
$custom-light: #6c5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2e145a",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 262.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2765,
    "c": 0.11698,
    "h": 294.4
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#2E145A
secondary
#709238
accent
#E741A9
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E145A

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

Preview Lab → · Contrast checker → · Palette generator →

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