#2B176B#2B176B

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

Color values

HEX#2B176B
RGBrgb(43, 23, 107)
HSLhsl(254, 65%, 25%)
HSVhsv(254, 79%, 42%)
CMYKcmyk(59.8%, 78.5%, 0%, 58%)
CIE-LABlab(16.44, 33.43, -45.30)
CIE-LCHlch(16.44, 56.30, 306.43°)
OKLaboklab(29.45% 0.0361 -0.1304)
OKLCHoklch(29.45% 0.135 285.5)
XYZxyz(3.9557, 2.1877, 14.1209)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B176B #576B17
analogous
#172D6B #2B176B #55176B
triadic
#2B176B #6B2B17 #176B2B
tetradic
#2B176B #6B172D #576B17 #176B55
square
#2B176B #6B172D #576B17 #176B55
split-complementary
#2B176B #6B5517 #2D6B17
monochromatic
#0A0519 #170C39 #2B176B #3F229D #532DD0

Accessibility & contrast

On white

14.61
#2B176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B176B
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B176B#FFFFFF#000000##FFFFFF
##2B176B1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b176b;
/* rgb */ color: rgb(43, 23, 107);
/* oklch */ color: oklch(29.5% 0.135 285.5);
Tailwind
colors: {
  custom: {
    50: '#6d5696',
    500: '#2b176b',
    950: '#000000',
  },
}
SCSS
$custom: #2b176b;
$custom-light: #6d5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2b176b",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 254.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29453,
    "c": 0.13534,
    "h": 285.5
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#2B176B
secondary
#89A13D
accent
#E840C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B176B

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

Preview Lab → · Contrast checker → · Palette generator →

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