#2A164A#2A164A

#2A164A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.092 H 297.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#2A164A
RGBrgb(42, 22, 74)
HSLhsl(263, 54%, 19%)
HSVhsv(263, 70%, 29%)
CMYKcmyk(43.2%, 70.3%, 0%, 71%)
CIE-LABlab(12.99, 23.31, -28.78)
CIE-LCHlch(12.99, 37.03, 309.00°)
OKLaboklab(25.99% 0.0422 -0.082)
OKLCHoklch(25.99% 0.092 297.2)
XYZxyz(2.4775, 1.5604, 6.6479)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A164A #364A16
analogous
#161C4A #2A164A #44164A
triadic
#2A164A #4A2A16 #164A2A
tetradic
#2A164A #4A161C #364A16 #164A44
square
#2A164A #4A161C #364A16 #164A44
split-complementary
#2A164A #4A4416 #1C4A16
monochromatic
#0D0718 #0F081B #2A164A #452479 #6032A8

Accessibility & contrast

On white

16.01
#2A164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A164A
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A164A#FFFFFF#000000##FFFFFF
##2A164A1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#22222D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a164a;
/* rgb */ color: rgb(42, 22, 74);
/* oklch */ color: oklch(26.0% 0.092 297.2);
Tailwind
colors: {
  custom: {
    50: '#67547d',
    500: '#2a164a',
    950: '#000000',
  },
}
SCSS
$custom: #2a164a;
$custom-light: #67547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a164a",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 263.077,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25994,
    "c": 0.09219,
    "h": 297.2
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#2A164A
secondary
#66823A
accent
#DE4AA5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A164A

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

Preview Lab → · Contrast checker → · Palette generator →

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