#2B174F#2B174F

#2B174F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.098 H 295.4°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2B174F
RGBrgb(43, 23, 79)
HSLhsl(261, 55%, 20%)
HSVhsv(261, 71%, 31%)
CMYKcmyk(45.6%, 70.9%, 0%, 69%)
CIE-LABlab(13.77, 24.49, -30.94)
CIE-LCHlch(13.77, 39.46, 308.36°)
OKLaboklab(26.73% 0.042 -0.0883)
OKLCHoklch(26.73% 0.098 295.4)
XYZxyz(2.7136, 1.6908, 7.5790)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B174F #3B4F17
analogous
#171F4F #2B174F #47174F
triadic
#2B174F #4F2B17 #174F2B
tetradic
#2B174F #4F171F #3B4F17 #174F47
square
#2B174F #4F171F #3B4F17 #174F47
split-complementary
#2B174F #4F4717 #1F4F17
monochromatic
#0D0718 #110920 #2B174F #45257E #5F33AE

Accessibility & contrast

On white

15.69
#2B174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B174F
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B174F#FFFFFF#000000##FFFFFF
##2B174F1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#222430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b174f;
/* rgb */ color: rgb(43, 23, 79);
/* oklch */ color: oklch(26.7% 0.098 295.4);
Tailwind
colors: {
  custom: {
    50: '#685581',
    500: '#2b174f',
    950: '#000000',
  },
}
SCSS
$custom: #2b174f;
$custom-light: #685581;
$custom-dark: #000000;
JSON
{
  "hex": "#2b174f",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 261.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26726,
    "c": 0.09775,
    "h": 295.4
  },
  "luminance": 0.01691
}

Semantic roles & 50–950 ramp

primary
#2B174F
secondary
#6C863C
accent
#DE4AA9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B174F

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

Preview Lab → · Contrast checker → · Palette generator →

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