#2A164D#2A164D

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

Color values

HEX#2A164D
RGBrgb(42, 22, 77)
HSLhsl(262, 56%, 19%)
HSVhsv(262, 71%, 30%)
CMYKcmyk(45.5%, 71.4%, 0%, 69.8%)
CIE-LABlab(13.24, 24.25, -30.43)
CIE-LCHlch(13.24, 38.91, 308.54°)
OKLaboklab(26.26% 0.0419 -0.0868)
OKLCHoklch(26.26% 0.096 295.7)
XYZxyz(2.5810, 1.6018, 7.1929)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A164D #394D16
analogous
#161E4D #2A164D #46164D
triadic
#2A164D #4D2A16 #164D2A
tetradic
#2A164D #4D161E #394D16 #164D46
square
#2A164D #4D161E #394D16 #164D46
split-complementary
#2A164D #4D4616 #1E4D16
monochromatic
#0D0718 #10081D #2A164D #44247D #5E31AC

Accessibility & contrast

On white

15.90
#2A164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A164D
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A164D#FFFFFF#000000##FFFFFF
##2A164D1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#21232F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a164d;
/* rgb */ color: rgb(42, 22, 77);
/* oklch */ color: oklch(26.3% 0.096 295.7);
Tailwind
colors: {
  custom: {
    50: '#67547f',
    500: '#2a164d',
    950: '#000000',
  },
}
SCSS
$custom: #2a164d;
$custom-light: #67547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a164d",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 261.818,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26258,
    "c": 0.09641,
    "h": 295.7
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#2A164D
secondary
#6A853A
accent
#DF49A8
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A164D

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

Preview Lab → · Contrast checker → · Palette generator →

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