#2B164B#2B164B

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

Color values

HEX#2B164B
RGBrgb(43, 22, 75)
HSLhsl(264, 55%, 19%)
HSVhsv(264, 71%, 29%)
CMYKcmyk(42.7%, 70.7%, 0%, 70.6%)
CIE-LABlab(13.20, 23.87, -29.11)
CIE-LCHlch(13.20, 37.64, 309.34°)
OKLaboklab(26.21% 0.0437 -0.0829)
OKLCHoklch(26.21% 0.094 297.8)
XYZxyz(2.5528, 1.5954, 6.8287)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B164B #364B16
analogous
#161C4B #2B164B #46164B
triadic
#2B164B #4B2B16 #164B2B
tetradic
#2B164B #4B161C #364B16 #164B46
square
#2B164B #4B161C #364B16 #164B46
split-complementary
#2B164B #4B4616 #1C4B16
monochromatic
#0E0718 #10081C #2B164B #46247A #6132AA

Accessibility & contrast

On white

15.92
#2B164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B164B
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B164B#FFFFFF#000000##FFFFFF
##2B164B1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b164b;
/* rgb */ color: rgb(43, 22, 75);
/* oklch */ color: oklch(26.2% 0.094 297.8);
Tailwind
colors: {
  custom: {
    50: '#67547e',
    500: '#2b164b',
    950: '#000000',
  },
}
SCSS
$custom: #2b164b;
$custom-light: #67547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b164b",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 263.774,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26206,
    "c": 0.09374,
    "h": 297.8
  },
  "luminance": 0.01595
}

Semantic roles & 50–950 ramp

primary
#2B164B
secondary
#66833A
accent
#DE4AA3
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B164B

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

Preview Lab → · Contrast checker → · Palette generator →

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