#2A177F#2A177F

#2A177F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.161 H 280.3°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2A177F
RGBrgb(42, 23, 127)
HSLhsl(251, 69%, 29%)
HSVhsv(251, 82%, 50%)
CMYKcmyk(66.9%, 81.9%, 0%, 50.2%)
CIE-LABlab(18.53, 39.65, -54.75)
CIE-LCHlch(18.53, 67.60, 305.91°)
OKLaboklab(31.54% 0.0286 -0.1581)
OKLCHoklch(31.54% 0.161 280.3)
XYZxyz(5.0908, 2.6369, 20.3153)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A177F #6C7F17
analogous
#17387F #2A177F #5E177F
triadic
#2A177F #7F2A17 #177F2A
tetradic
#2A177F #7F1738 #6C7F17 #177F5E
square
#2A177F #7F1738 #6C7F17 #177F5E
split-complementary
#2A177F #7F5E17 #387F17
monochromatic
#09051A #190E4B #2A177F #3B20B3 #5436DB

Accessibility & contrast

On white

13.75
#2A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A177F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A177F#FFFFFF#000000##FFFFFF
##2A177F1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a177f;
/* rgb */ color: rgb(42, 23, 127);
/* oklch */ color: oklch(31.5% 0.161 280.3);
Tailwind
colors: {
  custom: {
    50: '#7158a5',
    500: '#2a177f',
    950: '#000000',
  },
}
SCSS
$custom: #2a177f;
$custom-light: #7158a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a177f",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 250.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31539,
    "c": 0.16063,
    "h": 280.3
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

primary
#2A177F
secondary
#9EB43E
accent
#EC3CCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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