#2A176B#2A176B

#2A176B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.135 H 284.8°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2A176B
RGBrgb(42, 23, 107)
HSLhsl(254, 65%, 25%)
HSVhsv(254, 79%, 42%)
CMYKcmyk(60.7%, 78.5%, 0%, 58%)
CIE-LABlab(16.34, 33.28, -45.48)
CIE-LCHlch(16.34, 56.36, 306.20°)
OKLaboklab(29.35% 0.0345 -0.131)
OKLCHoklch(29.35% 0.135 284.8)
XYZxyz(3.9143, 2.1663, 14.1190)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A176B #586B17
analogous
#172E6B #2A176B #54176B
triadic
#2A176B #6B2A17 #176B2A
tetradic
#2A176B #6B172E #586B17 #176B54
square
#2A176B #6B172E #586B17 #176B54
split-complementary
#2A176B #6B5417 #2E6B17
monochromatic
#0A0519 #160C39 #2A176B #3E229D #522DD0

Accessibility & contrast

On white

14.65
#2A176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A176B
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A176B#FFFFFF#000000##FFFFFF
##2A176B1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#072E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a176b;
/* rgb */ color: rgb(42, 23, 107);
/* oklch */ color: oklch(29.4% 0.135 284.8);
Tailwind
colors: {
  custom: {
    50: '#6c5696',
    500: '#2a176b',
    950: '#000000',
  },
}
SCSS
$custom: #2a176b;
$custom-light: #6c5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2a176b",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 253.571,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29353,
    "c": 0.13545,
    "h": 284.8
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#2A176B
secondary
#8AA13D
accent
#E840C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A176B

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

Preview Lab → · Contrast checker → · Palette generator →

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