#2B174A#2B174A

#2B174A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.091 H 297.9°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#2B174A
RGBrgb(43, 23, 74)
HSLhsl(264, 53%, 19%)
HSVhsv(264, 69%, 29%)
CMYKcmyk(41.9%, 68.9%, 0%, 71%)
CIE-LABlab(13.36, 22.92, -28.17)
CIE-LCHlch(13.36, 36.32, 309.13°)
OKLaboklab(26.29% 0.0425 -0.0801)
OKLCHoklch(26.29% 0.091 297.9)
XYZxyz(2.5384, 1.6208, 6.6563)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B174A #364A17
analogous
#171D4A #2B174A #45174A
triadic
#2B174A #4A2B17 #174A2B
tetradic
#2B174A #4A171D #364A17 #174A45
square
#2B174A #4A171D #364A17 #174A45
split-complementary
#2B174A #4A4517 #1D4A17
monochromatic
#0E0717 #10081B #2B174A #462679 #6134A7

Accessibility & contrast

On white

15.86
#2B174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B174A
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B174A#FFFFFF#000000##FFFFFF
##2B174A1.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#24222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b174a;
/* rgb */ color: rgb(43, 23, 74);
/* oklch */ color: oklch(26.3% 0.091 297.9);
Tailwind
colors: {
  custom: {
    50: '#67557d',
    500: '#2b174a',
    950: '#000000',
  },
}
SCSS
$custom: #2b174a;
$custom-light: #67557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b174a",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 263.529,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26291,
    "c": 0.0907,
    "h": 297.9
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#2B174A
secondary
#66813C
accent
#DC4CA3
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2B174A

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

Preview Lab → · Contrast checker → · Palette generator →

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