#2A184A#2A184A

#2A184A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.089 H 296.4°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#2A184A
RGBrgb(42, 24, 74)
HSLhsl(262, 51%, 19%)
HSVhsv(262, 68%, 29%)
CMYKcmyk(43.2%, 67.6%, 0%, 71%)
CIE-LABlab(13.47, 22.01, -27.99)
CIE-LCHlch(13.47, 35.61, 308.17°)
OKLaboklab(26.35% 0.0395 -0.0797)
OKLCHoklch(26.35% 0.089 296.4)
XYZxyz(2.5172, 1.6399, 6.6611)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A184A #384A18
analogous
#181F4A #2A184A #43184A
triadic
#2A184A #4A2A18 #184A2A
tetradic
#2A184A #4A181F #384A18 #184A43
square
#2A184A #4A181F #384A18 #184A43
split-complementary
#2A184A #4A4318 #1F4A18
monochromatic
#0D0717 #10091C #2A184A #442778 #5E36A6

Accessibility & contrast

On white

15.81
#2A184A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A184A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A184A
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A184A#FFFFFF#000000##FFFFFF
##2A184A1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#22232E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a184a;
/* rgb */ color: rgb(42, 24, 74);
/* oklch */ color: oklch(26.3% 0.089 296.4);
Tailwind
colors: {
  custom: {
    50: '#66567d',
    500: '#2a184a',
    950: '#000000',
  },
}
SCSS
$custom: #2a184a;
$custom-light: #66567d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a184a",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 74
  },
  "hsl": {
    "h": 261.6,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26345,
    "c": 0.08892,
    "h": 296.4
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#2A184A
secondary
#68813D
accent
#DA4DA8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A184A

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

Preview Lab → · Contrast checker → · Palette generator →

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