#2A176E#2A176E

#2A176E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.139 H 284.0°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2A176E
RGBrgb(42, 23, 110)
HSLhsl(253, 65%, 26%)
HSVhsv(253, 79%, 43%)
CMYKcmyk(61.8%, 79.1%, 0%, 56.9%)
CIE-LABlab(16.65, 34.25, -46.91)
CIE-LCHlch(16.65, 58.08, 306.13°)
OKLaboklab(29.67% 0.0337 -0.1352)
OKLCHoklch(29.67% 0.139 284)
XYZxyz(4.0748, 2.2306, 14.9646)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A176E #5B6E17
analogous
#172F6E #2A176E #55176E
triadic
#2A176E #6E2A17 #176E2A
tetradic
#2A176E #6E172F #5B6E17 #176E55
square
#2A176E #6E172F #5B6E17 #176E55
split-complementary
#2A176E #6E5517 #2F6E17
monochromatic
#0A0519 #170C3B #2A176E #3D22A1 #512CD3

Accessibility & contrast

On white

14.52
#2A176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A176E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A176E#FFFFFF#000000##FFFFFF
##2A176E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#023041
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a176e;
/* rgb */ color: rgb(42, 23, 110);
/* oklch */ color: oklch(29.7% 0.139 284.0);
Tailwind
colors: {
  custom: {
    50: '#6d5799',
    500: '#2a176e',
    950: '#000000',
  },
}
SCSS
$custom: #2a176e;
$custom-light: #6d5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2a176e",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 253.103,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29671,
    "c": 0.13931,
    "h": 284
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#2A176E
secondary
#8DA43D
accent
#E83FC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A176E

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

Preview Lab → · Contrast checker → · Palette generator →

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