#2A174B#2A174B

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

Color values

HEX#2A174B
RGBrgb(42, 23, 75)
HSLhsl(262, 53%, 19%)
HSVhsv(262, 69%, 29%)
CMYKcmyk(44%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.31, 22.98, -28.95)
CIE-LCHlch(13.31, 36.96, 308.44°)
OKLaboklab(26.25% 0.0408 -0.0825)
OKLCHoklch(26.25% 0.092 296.3)
XYZxyz(2.5309, 1.6130, 6.8332)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A174B #384B17
analogous
#171E4B #2A174B #44174B
triadic
#2A174B #4B2A17 #174B2A
tetradic
#2A174B #4B171E #384B17 #174B44
square
#2A174B #4B171E #384B17 #174B44
split-complementary
#2A174B #4B4417 #1E4B17
monochromatic
#0D0717 #10091C #2A174B #44257A #5E34A9

Accessibility & contrast

On white

15.88
#2A174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A174B
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A174B#FFFFFF#000000##FFFFFF
##2A174B1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#22232E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a174b;
/* rgb */ color: rgb(42, 23, 75);
/* oklch */ color: oklch(26.3% 0.092 296.3);
Tailwind
colors: {
  custom: {
    50: '#67557e',
    500: '#2a174b',
    950: '#000000',
  },
}
SCSS
$custom: #2a174b;
$custom-light: #67557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a174b",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 261.923,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26254,
    "c": 0.092,
    "h": 296.3
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#2A174B
secondary
#68823C
accent
#DC4BA7
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A174B

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

Preview Lab → · Contrast checker → · Palette generator →

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