#2B166D#2B166D

#2B166D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.139 H 285.2°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2B166D
RGBrgb(43, 22, 109)
HSLhsl(254, 66%, 26%)
HSVhsv(254, 80%, 43%)
CMYKcmyk(60.6%, 79.8%, 0%, 57.3%)
CIE-LABlab(16.46, 34.62, -46.58)
CIE-LCHlch(16.46, 58.03, 306.62°)
OKLaboklab(29.53% 0.0364 -0.1341)
OKLCHoklch(29.53% 0.139 285.2)
XYZxyz(4.0426, 2.1913, 14.6750)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B166D #586D16
analogous
#162C6D #2B166D #56166D
triadic
#2B166D #6D2B16 #166D2B
tetradic
#2B166D #6D162C #586D16 #166D56
square
#2B166D #6D162C #586D16 #166D56
split-complementary
#2B166D #6D5616 #2C6D16
monochromatic
#0A0519 #170C3A #2B166D #3F20A0 #532BD3

Accessibility & contrast

On white

14.60
#2B166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B166D
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B166D#FFFFFF#000000##FFFFFF
##2B166D1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#082F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b166d;
/* rgb */ color: rgb(43, 22, 109);
/* oklch */ color: oklch(29.5% 0.139 285.2);
Tailwind
colors: {
  custom: {
    50: '#6d5698',
    500: '#2b166d',
    950: '#000000',
  },
}
SCSS
$custom: #2b166d;
$custom-light: #6d5698;
$custom-dark: #000000;
JSON
{
  "hex": "#2b166d",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 254.483,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29529,
    "c": 0.13899,
    "h": 285.2
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#2B166D
secondary
#8AA33C
accent
#E93EC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2B166D

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

Preview Lab → · Contrast checker → · Palette generator →

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