#2A174C#2A174C

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

Color values

HEX#2A174C
RGBrgb(42, 23, 76)
HSLhsl(262, 54%, 19%)
HSVhsv(262, 70%, 30%)
CMYKcmyk(44.7%, 69.7%, 0%, 70.2%)
CIE-LABlab(13.39, 23.29, -29.50)
CIE-LCHlch(13.39, 37.59, 308.29°)
OKLaboklab(26.34% 0.0407 -0.0841)
OKLCHoklch(26.34% 0.093 295.8)
XYZxyz(2.5654, 1.6268, 7.0149)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A174C #394C17
analogous
#171F4C #2A174C #45174C
triadic
#2A174C #4C2A17 #174C2A
tetradic
#2A174C #4C171F #394C17 #174C45
square
#2A174C #4C171F #394C17 #174C45
split-complementary
#2A174C #4C4517 #1F4C17
monochromatic
#0D0717 #10091D #2A174C #44257B #5E33AA

Accessibility & contrast

On white

15.84
#2A174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A174C
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A174C#FFFFFF#000000##FFFFFF
##2A174C1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#21232F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a174c;
/* rgb */ color: rgb(42, 23, 76);
/* oklch */ color: oklch(26.3% 0.093 295.8);
Tailwind
colors: {
  custom: {
    50: '#67557e',
    500: '#2a174c',
    950: '#000000',
  },
}
SCSS
$custom: #2a174c;
$custom-light: #67557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a174c",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 261.509,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26341,
    "c": 0.09343,
    "h": 295.8
  },
  "luminance": 0.01627
}

Semantic roles & 50–950 ramp

primary
#2A174C
secondary
#6A833C
accent
#DD4BA9
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A174C

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

Preview Lab → · Contrast checker → · Palette generator →

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