#2B164C#2B164C

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

Color values

HEX#2B164C
RGBrgb(43, 22, 76)
HSLhsl(263, 55%, 19%)
HSVhsv(263, 71%, 30%)
CMYKcmyk(43.4%, 71.1%, 0%, 70.2%)
CIE-LABlab(13.29, 24.18, -29.67)
CIE-LCHlch(13.29, 38.27, 309.18°)
OKLaboklab(26.29% 0.0436 -0.0845)
OKLCHoklch(26.29% 0.095 297.3)
XYZxyz(2.5873, 1.6092, 7.0104)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B164C #374C16
analogous
#161C4C #2B164C #46164C
triadic
#2B164C #4C2B16 #164C2B
tetradic
#2B164C #4C161C #374C16 #164C46
square
#2B164C #4C161C #374C16 #164C46
split-complementary
#2B164C #4C4616 #1C4C16
monochromatic
#0D0718 #10081D #2B164C #46247B #6131AB

Accessibility & contrast

On white

15.89
#2B164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B164C
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B164C#FFFFFF#000000##FFFFFF
##2B164C1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b164c;
/* rgb */ color: rgb(43, 22, 76);
/* oklch */ color: oklch(26.3% 0.095 297.3);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2b164c',
    950: '#000000',
  },
}
SCSS
$custom: #2b164c;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b164c",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 263.333,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26293,
    "c": 0.09513,
    "h": 297.3
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#2B164C
secondary
#67843A
accent
#DE49A4
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B164C

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

Preview Lab → · Contrast checker → · Palette generator →

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