#2B166E#2B166E

#2B166E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.140 H 284.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2B166E
RGBrgb(43, 22, 110)
HSLhsl(254, 67%, 26%)
HSVhsv(254, 80%, 43%)
CMYKcmyk(60.9%, 80%, 0%, 56.9%)
CIE-LABlab(16.57, 34.93, -47.05)
CIE-LCHlch(16.57, 58.60, 306.59°)
OKLaboklab(29.64% 0.0361 -0.1355)
OKLCHoklch(29.64% 0.14 284.9)
XYZxyz(4.0968, 2.2129, 14.9601)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B166E #596E16
analogous
#162D6E #2B166E #57166E
triadic
#2B166E #6E2B16 #166E2B
tetradic
#2B166E #6E162D #596E16 #166E57
square
#2B166E #6E162D #596E16 #166E57
split-complementary
#2B166E #6E5716 #2D6E16
monochromatic
#0A051A #170C3B #2B166E #3F20A1 #532AD4

Accessibility & contrast

On white

14.56
#2B166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B166E
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B166E#FFFFFF#000000##FFFFFF
##2B166E1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#062F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b166e;
/* rgb */ color: rgb(43, 22, 110);
/* oklch */ color: oklch(29.6% 0.140 284.9);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2b166e',
    950: '#000000',
  },
}
SCSS
$custom: #2b166e;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2b166e",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 254.318,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29636,
    "c": 0.14026,
    "h": 284.9
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#2B166E
secondary
#8BA43C
accent
#EA3EC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B166E

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

Preview Lab → · Contrast checker → · Palette generator →

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