#2A176C#2A176C

#2A176C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.137 H 284.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2A176C
RGBrgb(42, 23, 108)
HSLhsl(253, 65%, 26%)
HSVhsv(253, 79%, 42%)
CMYKcmyk(61.1%, 78.7%, 0%, 57.6%)
CIE-LABlab(16.44, 33.60, -45.96)
CIE-LCHlch(16.44, 56.93, 306.17°)
OKLaboklab(29.46% 0.0343 -0.1324)
OKLCHoklch(29.46% 0.137 284.5)
XYZxyz(3.9672, 2.1875, 14.3976)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A176C #596C17
analogous
#172E6C #2A176C #54176C
triadic
#2A176C #6C2A17 #176C2A
tetradic
#2A176C #6C172E #596C17 #176C54
square
#2A176C #6C172E #596C17 #176C54
split-complementary
#2A176C #6C5417 #2E6C17
monochromatic
#0A0519 #160C3A #2A176C #3E229E #512CD1

Accessibility & contrast

On white

14.61
#2A176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A176C
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A176C#FFFFFF#000000##FFFFFF
##2A176C1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#052F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a176c;
/* rgb */ color: rgb(42, 23, 108);
/* oklch */ color: oklch(29.5% 0.137 284.5);
Tailwind
colors: {
  custom: {
    50: '#6d5697',
    500: '#2a176c',
    950: '#000000',
  },
}
SCSS
$custom: #2a176c;
$custom-light: #6d5697;
$custom-dark: #000000;
JSON
{
  "hex": "#2a176c",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 253.412,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29458,
    "c": 0.13675,
    "h": 284.5
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#2A176C
secondary
#8BA23D
accent
#E840C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A176C

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

Preview Lab → · Contrast checker → · Palette generator →

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