#2B174C#2B174C

#2B174C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.094 H 296.9°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#2B174C
RGBrgb(43, 23, 76)
HSLhsl(263, 54%, 19%)
HSVhsv(263, 70%, 30%)
CMYKcmyk(43.4%, 69.7%, 0%, 70.2%)
CIE-LABlab(13.52, 23.54, -29.29)
CIE-LCHlch(13.52, 37.58, 308.79°)
OKLaboklab(26.46% 0.0423 -0.0834)
OKLCHoklch(26.46% 0.094 296.9)
XYZxyz(2.6068, 1.6481, 7.0169)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B174C #384C17
analogous
#171E4C #2B174C #46174C
triadic
#2B174C #4C2B17 #174C2B
tetradic
#2B174C #4C171E #384C17 #174C46
square
#2B174C #4C171E #384C17 #174C46
split-complementary
#2B174C #4C4617 #1E4C17
monochromatic
#0D0717 #10091D #2B174C #46257B #6033AA

Accessibility & contrast

On white

15.79
#2B174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B174C
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B174C#FFFFFF#000000##FFFFFF
##2B174C1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#23232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b174c;
/* rgb */ color: rgb(43, 23, 76);
/* oklch */ color: oklch(26.5% 0.094 296.9);
Tailwind
colors: {
  custom: {
    50: '#67557e',
    500: '#2b174c',
    950: '#000000',
  },
}
SCSS
$custom: #2b174c;
$custom-light: #67557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b174c",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 262.642,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26463,
    "c": 0.09354,
    "h": 296.9
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#2B174C
secondary
#68833C
accent
#DD4BA6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B174C

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

Preview Lab → · Contrast checker → · Palette generator →

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