#2A177A#2A177A

#2A177A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.154 H 281.3°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2A177A
RGBrgb(42, 23, 122)
HSLhsl(252, 68%, 28%)
HSVhsv(252, 81%, 48%)
CMYKcmyk(65.6%, 81.1%, 0%, 52.2%)
CIE-LABlab(17.96, 38.08, -52.50)
CIE-LCHlch(17.96, 64.85, 305.95°)
OKLaboklab(30.98% 0.0302 -0.1515)
OKLCHoklch(30.98% 0.154 281.3)
XYZxyz(4.7730, 2.5098, 18.6415)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A177A #677A17
analogous
#17357A #2A177A #5B177A
triadic
#2A177A #7A2A17 #177A2A
tetradic
#2A177A #7A1735 #677A17 #177A5B
square
#2A177A #7A1735 #677A17 #177A5B
split-complementary
#2A177A #7A5B17 #357A17
monochromatic
#09051A #180D47 #2A177A #3C21AD #5333D9

Accessibility & contrast

On white

13.98
#2A177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A177A
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A177A#FFFFFF#000000##FFFFFF
##2A177A1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a177a;
/* rgb */ color: rgb(42, 23, 122);
/* oklch */ color: oklch(31.0% 0.154 281.3);
Tailwind
colors: {
  custom: {
    50: '#7057a2',
    500: '#2a177a',
    950: '#000000',
  },
}
SCSS
$custom: #2a177a;
$custom-light: #7057a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a177a",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 251.515,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3098,
    "c": 0.15445,
    "h": 281.3
  },
  "luminance": 0.0251
}

Semantic roles & 50–950 ramp

primary
#2A177A
secondary
#99AF3E
accent
#EB3DCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A177A

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

Preview Lab → · Contrast checker → · Palette generator →

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