#2B166A#2B166A

#2B166A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.135 H 286.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2B166A
RGBrgb(43, 22, 106)
HSLhsl(255, 66%, 25%)
HSVhsv(255, 79%, 42%)
CMYKcmyk(59.4%, 79.2%, 0%, 58.4%)
CIE-LABlab(16.14, 33.67, -45.14)
CIE-LCHlch(16.14, 56.31, 306.72°)
OKLaboklab(29.21% 0.0372 -0.1299)
OKLCHoklch(29.21% 0.135 286)
XYZxyz(3.8839, 2.1278, 13.8389)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B166A #556A16
analogous
#162B6A #2B166A #55166A
triadic
#2B166A #6A2B16 #166A2B
tetradic
#2B166A #6A162B #556A16 #166A55
square
#2B166A #6A162B #556A16 #166A55
split-complementary
#2B166A #6A5516 #2B6A16
monochromatic
#0A0519 #160B37 #2B166A #40219D #542BCF

Accessibility & contrast

On white

14.73
#2B166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B166A
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B166A#FFFFFF#000000##FFFFFF
##2B166A1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#0D2E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b166a;
/* rgb */ color: rgb(43, 22, 106);
/* oklch */ color: oklch(29.2% 0.135 286.0);
Tailwind
colors: {
  custom: {
    50: '#6d5696',
    500: '#2b166a',
    950: '#000000',
  },
}
SCSS
$custom: #2b166a;
$custom-light: #6d5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2b166a",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 255,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29211,
    "c": 0.13517,
    "h": 286
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#2B166A
secondary
#87A03B
accent
#E93FBE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B166A

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

Preview Lab → · Contrast checker → · Palette generator →

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