#2B176A#2B176A

#2B176A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.134 H 285.8°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2B176A
RGBrgb(43, 23, 106)
HSLhsl(254, 64%, 25%)
HSVhsv(254, 78%, 42%)
CMYKcmyk(59.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(16.34, 33.11, -44.81)
CIE-LCHlch(16.34, 55.72, 306.46°)
OKLaboklab(29.35% 0.0364 -0.129)
OKLCHoklch(29.35% 0.134 285.8)
XYZxyz(3.9034, 2.1668, 13.8454)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B176A #566A17
analogous
#172C6A #2B176A #54176A
triadic
#2B176A #6A2B17 #176A2B
tetradic
#2B176A #6A172C #566A17 #176A54
square
#2B176A #6A172C #566A17 #176A54
split-complementary
#2B176A #6A5417 #2C6A17
monochromatic
#0A0519 #170C38 #2B176A #3F229C #542DCF

Accessibility & contrast

On white

14.65
#2B176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B176A
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B176A#FFFFFF#000000##FFFFFF
##2B176A1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b176a;
/* rgb */ color: rgb(43, 23, 106);
/* oklch */ color: oklch(29.3% 0.134 285.8);
Tailwind
colors: {
  custom: {
    50: '#6d5695',
    500: '#2b176a',
    950: '#000000',
  },
}
SCSS
$custom: #2b176a;
$custom-light: #6d5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2b176a",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 254.458,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29348,
    "c": 0.13405,
    "h": 285.8
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#2B176A
secondary
#88A03D
accent
#E740BF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B176A

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

Preview Lab → · Contrast checker → · Palette generator →

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