#2B164D#2B164D

#2B164D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.097 H 296.8°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2B164D
RGBrgb(43, 22, 77)
HSLhsl(263, 56%, 19%)
HSVhsv(263, 71%, 30%)
CMYKcmyk(44.2%, 71.4%, 0%, 69.8%)
CIE-LABlab(13.37, 24.49, -30.22)
CIE-LCHlch(13.37, 38.89, 309.02°)
OKLaboklab(26.38% 0.0435 -0.0862)
OKLCHoklch(26.38% 0.097 296.8)
XYZxyz(2.6224, 1.6232, 7.1949)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B164D #384D16
analogous
#161D4D #2B164D #47164D
triadic
#2B164D #4D2B16 #164D2B
tetradic
#2B164D #4D161D #384D16 #164D47
square
#2B164D #4D161D #384D16 #164D47
split-complementary
#2B164D #4D4716 #1D4D16
monochromatic
#0D0718 #10081D #2B164D #46247D #6031AC

Accessibility & contrast

On white

15.85
#2B164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B164D
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B164D#FFFFFF#000000##FFFFFF
##2B164D1.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b164d;
/* rgb */ color: rgb(43, 22, 77);
/* oklch */ color: oklch(26.4% 0.097 296.8);
Tailwind
colors: {
  custom: {
    50: '#68547f',
    500: '#2b164d',
    950: '#000000',
  },
}
SCSS
$custom: #2b164d;
$custom-light: #68547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b164d",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 262.909,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26381,
    "c": 0.09652,
    "h": 296.8
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#2B164D
secondary
#68853A
accent
#DF49A6
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B164D

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

Preview Lab → · Contrast checker → · Palette generator →

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