#2A174F#2A174F

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

Color values

HEX#2A174F
RGBrgb(42, 23, 79)
HSLhsl(260, 55%, 20%)
HSVhsv(260, 71%, 31%)
CMYKcmyk(46.8%, 70.9%, 0%, 69%)
CIE-LABlab(13.65, 24.24, -31.15)
CIE-LCHlch(13.65, 39.47, 307.89°)
OKLaboklab(26.61% 0.0404 -0.0889)
OKLCHoklch(26.61% 0.098 294.4)
XYZxyz(2.6721, 1.6695, 7.5771)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A174F #3C4F17
analogous
#17204F #2A174F #46174F
triadic
#2A174F #4F2A17 #174F2A
tetradic
#2A174F #4F1720 #3C4F17 #174F46
square
#2A174F #4F1720 #3C4F17 #174F46
split-complementary
#2A174F #4F4617 #204F17
monochromatic
#0D0718 #110920 #2A174F #43257E #5C33AE

Accessibility & contrast

On white

15.74
#2A174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A174F
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A174F#FFFFFF#000000##FFFFFF
##2A174F1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a174f;
/* rgb */ color: rgb(42, 23, 79);
/* oklch */ color: oklch(26.6% 0.098 294.4);
Tailwind
colors: {
  custom: {
    50: '#675581',
    500: '#2a174f',
    950: '#000000',
  },
}
SCSS
$custom: #2a174f;
$custom-light: #675581;
$custom-dark: #000000;
JSON
{
  "hex": "#2a174f",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 260.357,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26606,
    "c": 0.09767,
    "h": 294.4
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#2A174F
secondary
#6D863C
accent
#DE4AAC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A174F

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

Preview Lab → · Contrast checker → · Palette generator →

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