#2A164B#2A164B

#2A164B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.094 H 296.7°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2A164B
RGBrgb(42, 22, 75)
HSLhsl(263, 55%, 19%)
HSVhsv(263, 71%, 29%)
CMYKcmyk(44%, 70.7%, 0%, 70.6%)
CIE-LABlab(13.07, 23.62, -29.33)
CIE-LCHlch(13.07, 37.66, 308.84°)
OKLaboklab(26.08% 0.0421 -0.0836)
OKLCHoklch(26.08% 0.094 296.7)
XYZxyz(2.5114, 1.5740, 6.8267)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A164B #374B16
analogous
#161D4B #2A164B #45164B
triadic
#2A164B #4B2A16 #164B2A
tetradic
#2A164B #4B161D #374B16 #164B45
square
#2A164B #4B161D #374B16 #164B45
split-complementary
#2A164B #4B4516 #1D4B16
monochromatic
#0D0718 #10081C #2A164B #45247A #5F32AA

Accessibility & contrast

On white

15.97
#2A164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A164B
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A164B#FFFFFF#000000##FFFFFF
##2A164B1.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#22222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a164b;
/* rgb */ color: rgb(42, 22, 75);
/* oklch */ color: oklch(26.1% 0.094 296.7);
Tailwind
colors: {
  custom: {
    50: '#67547e',
    500: '#2a164b',
    950: '#000000',
  },
}
SCSS
$custom: #2a164b;
$custom-light: #67547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a164b",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 262.642,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26081,
    "c": 0.09361,
    "h": 296.7
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#2A164B
secondary
#67833A
accent
#DE4AA6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A164B

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

Preview Lab → · Contrast checker → · Palette generator →

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