#2A164C#2A164C

#2A164C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.095 H 296.2°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2A164C
RGBrgb(42, 22, 76)
HSLhsl(262, 55%, 19%)
HSVhsv(262, 71%, 30%)
CMYKcmyk(44.7%, 71.1%, 0%, 70.2%)
CIE-LABlab(13.16, 23.93, -29.88)
CIE-LCHlch(13.16, 38.28, 308.69°)
OKLaboklab(26.17% 0.042 -0.0852)
OKLCHoklch(26.17% 0.095 296.2)
XYZxyz(2.5459, 1.5878, 7.0084)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A164C #384C16
analogous
#161D4C #2A164C #45164C
triadic
#2A164C #4C2A16 #164C2A
tetradic
#2A164C #4C161D #384C16 #164C45
square
#2A164C #4C161D #384C16 #164C45
split-complementary
#2A164C #4C4516 #1D4C16
monochromatic
#0D0718 #10081D #2A164C #44247B #5E31AB

Accessibility & contrast

On white

15.94
#2A164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A164C
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A164C#FFFFFF#000000##FFFFFF
##2A164C1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#21222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a164c;
/* rgb */ color: rgb(42, 22, 76);
/* oklch */ color: oklch(26.2% 0.095 296.2);
Tailwind
colors: {
  custom: {
    50: '#67547e',
    500: '#2a164c',
    950: '#000000',
  },
}
SCSS
$custom: #2a164c;
$custom-light: #67547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a164c",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 262.222,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26169,
    "c": 0.09501,
    "h": 296.2
  },
  "luminance": 0.01588
}

Semantic roles & 50–950 ramp

primary
#2A164C
secondary
#68843A
accent
#DE49A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A164C

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

Preview Lab → · Contrast checker → · Palette generator →

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