#2B174B#2B174B

#2B174B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.092 H 297.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2B174B
RGBrgb(43, 23, 75)
HSLhsl(263, 53%, 19%)
HSVhsv(263, 69%, 29%)
CMYKcmyk(42.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.44, 23.23, -28.73)
CIE-LCHlch(13.44, 36.95, 308.96°)
OKLaboklab(26.38% 0.0424 -0.0818)
OKLCHoklch(26.38% 0.092 297.4)
XYZxyz(2.5723, 1.6343, 6.8352)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B174B #374B17
analogous
#171D4B #2B174B #45174B
triadic
#2B174B #4B2B17 #174B2B
tetradic
#2B174B #4B171D #374B17 #174B45
square
#2B174B #4B171D #374B17 #174B45
split-complementary
#2B174B #4B4517 #1D4B17
monochromatic
#0D0717 #10091C #2B174B #46257A #6134A9

Accessibility & contrast

On white

15.83
#2B174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B174B
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B174B#FFFFFF#000000##FFFFFF
##2B174B1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#23232E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b174b;
/* rgb */ color: rgb(43, 23, 75);
/* oklch */ color: oklch(26.4% 0.092 297.4);
Tailwind
colors: {
  custom: {
    50: '#67557e',
    500: '#2b174b',
    950: '#000000',
  },
}
SCSS
$custom: #2b174b;
$custom-light: #67557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b174b",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 263.077,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26377,
    "c": 0.09213,
    "h": 297.4
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#2B174B
secondary
#67823C
accent
#DC4BA5
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B174B

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

Preview Lab → · Contrast checker → · Palette generator →

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