#2B167A#2B167A

#2B167A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.155 H 282.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2B167A
RGBrgb(43, 22, 122)
HSLhsl(253, 69%, 28%)
HSVhsv(253, 82%, 48%)
CMYKcmyk(64.8%, 82%, 0%, 52.2%)
CIE-LABlab(17.88, 38.70, -52.63)
CIE-LCHlch(17.88, 65.32, 306.33°)
OKLaboklab(30.95% 0.0324 -0.1518)
OKLCHoklch(30.95% 0.155 282)
XYZxyz(4.7949, 2.4922, 18.6369)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B167A #657A16
analogous
#16337A #2B167A #5D167A
triadic
#2B167A #7A2B16 #167A2B
tetradic
#2B167A #7A1633 #657A16 #167A5D
square
#2B167A #7A1633 #657A16 #167A5D
split-complementary
#2B167A #7A5D16 #337A16
monochromatic
#09051A #190D46 #2B167A #3D1FAE #5431DA

Accessibility & contrast

On white

14.01
#2B167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B167A
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B167A#FFFFFF#000000##FFFFFF
##2B167A1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b167a;
/* rgb */ color: rgb(43, 22, 122);
/* oklch */ color: oklch(30.9% 0.155 282.0);
Tailwind
colors: {
  custom: {
    50: '#7057a2',
    500: '#2b167a',
    950: '#000000',
  },
}
SCSS
$custom: #2b167a;
$custom-light: #7057a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b167a",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 252.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30948,
    "c": 0.15523,
    "h": 282
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#2B167A
secondary
#97AF3D
accent
#EC3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B167A

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

Preview Lab → · Contrast checker → · Palette generator →

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