#2B166B#2B166B

#2B166B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.136 H 285.7°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2B166B
RGBrgb(43, 22, 107)
HSLhsl(255, 66%, 25%)
HSVhsv(255, 79%, 42%)
CMYKcmyk(59.8%, 79.4%, 0%, 58%)
CIE-LABlab(16.25, 33.98, -45.62)
CIE-LCHlch(16.25, 56.88, 306.68°)
OKLaboklab(29.32% 0.0369 -0.1313)
OKLCHoklch(29.32% 0.136 285.7)
XYZxyz(3.9362, 2.1487, 14.1144)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B166B #566B16
analogous
#162B6B #2B166B #56166B
triadic
#2B166B #6B2B16 #166B2B
tetradic
#2B166B #6B162B #566B16 #166B56
square
#2B166B #6B162B #566B16 #166B56
split-complementary
#2B166B #6B5616 #2B6B16
monochromatic
#0A0519 #170C38 #2B166B #3F209E #542BD1

Accessibility & contrast

On white

14.69
#2B166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B166B
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B166B#FFFFFF#000000##FFFFFF
##2B166B1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#0B2E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b166b;
/* rgb */ color: rgb(43, 22, 107);
/* oklch */ color: oklch(29.3% 0.136 285.7);
Tailwind
colors: {
  custom: {
    50: '#6d5696',
    500: '#2b166b',
    950: '#000000',
  },
}
SCSS
$custom: #2b166b;
$custom-light: #6d5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2b166b",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 254.824,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29316,
    "c": 0.13645,
    "h": 285.7
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#2B166B
secondary
#88A13B
accent
#E93FBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B166B

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

Preview Lab → · Contrast checker → · Palette generator →

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