#2A176D#2A176D

#2A176D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.138 H 284.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2A176D
RGBrgb(42, 23, 109)
HSLhsl(253, 65%, 26%)
HSVhsv(253, 79%, 43%)
CMYKcmyk(61.5%, 78.9%, 0%, 57.3%)
CIE-LABlab(16.55, 33.93, -46.44)
CIE-LCHlch(16.55, 57.51, 306.15°)
OKLaboklab(29.56% 0.034 -0.1338)
OKLCHoklch(29.56% 0.138 284.2)
XYZxyz(4.0207, 2.2089, 14.6795)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A176D #5A6D17
analogous
#172F6D #2A176D #55176D
triadic
#2A176D #6D2A17 #176D2A
tetradic
#2A176D #6D172F #5A6D17 #176D55
square
#2A176D #6D172F #5A6D17 #176D55
split-complementary
#2A176D #6D5517 #2F6D17
monochromatic
#0A0519 #170C3A #2A176D #3D22A0 #512CD2

Accessibility & contrast

On white

14.57
#2A176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A176D
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A176D#FFFFFF#000000##FFFFFF
##2A176D1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#042F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a176d;
/* rgb */ color: rgb(42, 23, 109);
/* oklch */ color: oklch(29.6% 0.138 284.2);
Tailwind
colors: {
  custom: {
    50: '#6d5798',
    500: '#2a176d',
    950: '#000000',
  },
}
SCSS
$custom: #2a176d;
$custom-light: #6d5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2a176d",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 253.256,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29564,
    "c": 0.13804,
    "h": 284.2
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#2A176D
secondary
#8CA33D
accent
#E840C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A176D

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

Preview Lab → · Contrast checker → · Palette generator →

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