#2A176A#2A176A

#2A176A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.134 H 285.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2A176A
RGBrgb(42, 23, 106)
HSLhsl(254, 64%, 25%)
HSVhsv(254, 78%, 42%)
CMYKcmyk(60.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(16.23, 32.96, -44.99)
CIE-LCHlch(16.23, 55.78, 306.22°)
OKLaboklab(29.25% 0.0348 -0.1296)
OKLCHoklch(29.25% 0.134 285)
XYZxyz(3.8620, 2.1454, 13.8435)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A176A #576A17
analogous
#172D6A #2A176A #53176A
triadic
#2A176A #6A2A17 #176A2A
tetradic
#2A176A #6A172D #576A17 #176A53
square
#2A176A #6A172D #576A17 #176A53
split-complementary
#2A176A #6A5317 #2D6A17
monochromatic
#0A0519 #160C38 #2A176A #3E229C #522DCF

Accessibility & contrast

On white

14.69
#2A176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A176A
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A176A#FFFFFF#000000##FFFFFF
##2A176A1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#092E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a176a;
/* rgb */ color: rgb(42, 23, 106);
/* oklch */ color: oklch(29.2% 0.134 285.0);
Tailwind
colors: {
  custom: {
    50: '#6c5695',
    500: '#2a176a',
    950: '#000000',
  },
}
SCSS
$custom: #2a176a;
$custom-light: #6c5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2a176a",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 253.735,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29247,
    "c": 0.13416,
    "h": 285
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#2A176A
secondary
#89A03D
accent
#E740C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A176A

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

Preview Lab → · Contrast checker → · Palette generator →

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