#2B176C#2B176C

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

Color values

HEX#2B176C
RGBrgb(43, 23, 108)
HSLhsl(254, 65%, 26%)
HSVhsv(254, 79%, 42%)
CMYKcmyk(60.2%, 78.7%, 0%, 57.6%)
CIE-LABlab(16.55, 33.75, -45.78)
CIE-LCHlch(16.55, 56.88, 306.40°)
OKLaboklab(29.56% 0.0359 -0.1318)
OKLCHoklch(29.56% 0.137 285.2)
XYZxyz(4.0086, 2.2089, 14.3996)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B176C #586C17
analogous
#172D6C #2B176C #55176C
triadic
#2B176C #6C2B17 #176C2B
tetradic
#2B176C #6C172D #586C17 #176C55
square
#2B176C #6C172D #586C17 #176C55
split-complementary
#2B176C #6C5517 #2D6C17
monochromatic
#0A0519 #170C3A #2B176C #3F229E #532CD1

Accessibility & contrast

On white

14.57
#2B176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B176C
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B176C#FFFFFF#000000##FFFFFF
##2B176C1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#092F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b176c;
/* rgb */ color: rgb(43, 23, 108);
/* oklch */ color: oklch(29.6% 0.137 285.2);
Tailwind
colors: {
  custom: {
    50: '#6d5797',
    500: '#2b176c',
    950: '#000000',
  },
}
SCSS
$custom: #2b176c;
$custom-light: #6d5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2b176c",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 254.118,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29558,
    "c": 0.13663,
    "h": 285.2
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#2B176C
secondary
#8AA23D
accent
#E840C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2B176C

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

Preview Lab → · Contrast checker → · Palette generator →

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