#2B164A#2B164A

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

Color values

HEX#2B164A
RGBrgb(43, 22, 74)
HSLhsl(264, 54%, 19%)
HSVhsv(264, 70%, 29%)
CMYKcmyk(41.9%, 70.3%, 0%, 71%)
CIE-LABlab(13.12, 23.56, -28.56)
CIE-LCHlch(13.12, 37.02, 309.52°)
OKLaboklab(26.12% 0.0438 -0.0813)
OKLCHoklch(26.12% 0.092 298.3)
XYZxyz(2.5189, 1.5818, 6.6498)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B164A #354A16
analogous
#161B4A #2B164A #45164A
triadic
#2B164A #4A2B16 #164A2B
tetradic
#2B164A #4A161B #354A16 #164A45
square
#2B164A #4A161B #354A16 #164A45
split-complementary
#2B164A #4A4516 #1B4A16
monochromatic
#0E0718 #10081B #2B164A #462479 #6232A8

Accessibility & contrast

On white

15.95
#2B164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B164A
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B164A#FFFFFF#000000##FFFFFF
##2B164A1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b164a;
/* rgb */ color: rgb(43, 22, 74);
/* oklch */ color: oklch(26.1% 0.092 298.3);
Tailwind
colors: {
  custom: {
    50: '#67547d',
    500: '#2b164a',
    950: '#000000',
  },
}
SCSS
$custom: #2b164a;
$custom-light: #67547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b164a",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 264.231,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26119,
    "c": 0.09234,
    "h": 298.3
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#2B164A
secondary
#65823A
accent
#DE4AA2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2B164A

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

Preview Lab → · Contrast checker → · Palette generator →

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