#2B168A#2B168A

#2B168A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.175 H 278.9°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2B168A
RGBrgb(43, 22, 138)
HSLhsl(251, 73%, 31%)
HSVhsv(251, 84%, 54%)
CMYKcmyk(68.8%, 84.1%, 0%, 45.9%)
CIE-LABlab(19.73, 43.63, -59.70)
CIE-LCHlch(19.73, 73.94, 306.16°)
OKLaboklab(32.77% 0.0272 -0.1724)
OKLCHoklch(32.77% 0.175 278.9)
XYZxyz(5.8691, 2.9219, 24.2945)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B168A #758A16
analogous
#163B8A #2B168A #65168A
triadic
#2B168A #8A2B16 #168A2B
tetradic
#2B168A #8A163B #758A16 #168A65
square
#2B168A #8A163B #758A16 #168A65
split-complementary
#2B168A #8A6516 #3B8A16
monochromatic
#0A0520 #1B0E55 #2B168A #3B1EBF #593BE0

Accessibility & contrast

On white

13.25
#2B168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B168A
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B168A#FFFFFF#000000##FFFFFF
##2B168A1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b168a;
/* rgb */ color: rgb(43, 22, 138);
/* oklch */ color: oklch(32.8% 0.175 278.9);
Tailwind
colors: {
  custom: {
    50: '#7458ad',
    500: '#2b168a',
    950: '#000000',
  },
}
SCSS
$custom: #2b168a;
$custom-light: #7458ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b168a",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 250.862,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32769,
    "c": 0.17454,
    "h": 278.9
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#2B168A
secondary
#A7BE3E
accent
#EF39CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B168A

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

Preview Lab → · Contrast checker → · Palette generator →

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