#2A174A#2A174A

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

Color values

HEX#2A174A
RGBrgb(42, 23, 74)
HSLhsl(262, 53%, 19%)
HSVhsv(262, 69%, 29%)
CMYKcmyk(43.2%, 68.9%, 0%, 71%)
CIE-LABlab(13.23, 22.66, -28.39)
CIE-LCHlch(13.23, 36.32, 308.60°)
OKLaboklab(26.17% 0.0409 -0.0808)
OKLCHoklch(26.17% 0.091 296.8)
XYZxyz(2.4970, 1.5994, 6.6544)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A174A #374A17
analogous
#171E4A #2A174A #44174A
triadic
#2A174A #4A2A17 #174A2A
tetradic
#2A174A #4A171E #374A17 #174A44
square
#2A174A #4A171E #374A17 #174A44
split-complementary
#2A174A #4A4417 #1E4A17
monochromatic
#0D0717 #10081B #2A174A #442679 #5F34A7

Accessibility & contrast

On white

15.91
#2A174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A174A
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A174A#FFFFFF#000000##FFFFFF
##2A174A1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a174a;
/* rgb */ color: rgb(42, 23, 74);
/* oklch */ color: oklch(26.2% 0.091 296.8);
Tailwind
colors: {
  custom: {
    50: '#66557d',
    500: '#2a174a',
    950: '#000000',
  },
}
SCSS
$custom: #2a174a;
$custom-light: #66557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a174a",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 262.353,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26168,
    "c": 0.09057,
    "h": 296.8
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#2A174A
secondary
#67813C
accent
#DC4CA6
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2A174A

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

Preview Lab → · Contrast checker → · Palette generator →

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