#2A176F#2A176F

#2A176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.141 H 283.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2A176F
RGBrgb(42, 23, 111)
HSLhsl(253, 66%, 26%)
HSVhsv(253, 79%, 44%)
CMYKcmyk(62.2%, 79.3%, 0%, 56.5%)
CIE-LABlab(16.76, 34.57, -47.39)
CIE-LCHlch(16.76, 58.66, 306.11°)
OKLaboklab(29.78% 0.0334 -0.1366)
OKLCHoklch(29.78% 0.141 283.7)
XYZxyz(4.1296, 2.2525, 15.2530)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A176F #5C6F17
analogous
#17306F #2A176F #56176F
triadic
#2A176F #6F2A17 #176F2A
tetradic
#2A176F #6F1730 #5C6F17 #176F56
square
#2A176F #6F1730 #5C6F17 #176F56
split-complementary
#2A176F #6F5617 #306F17
monochromatic
#0A0519 #170C3C #2A176F #3D22A2 #512DD3

Accessibility & contrast

On white

14.48
#2A176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A176F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A176F#FFFFFF#000000##FFFFFF
##2A176F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a176f;
/* rgb */ color: rgb(42, 23, 111);
/* oklch */ color: oklch(29.8% 0.141 283.7);
Tailwind
colors: {
  custom: {
    50: '#6d5799',
    500: '#2a176f',
    950: '#000000',
  },
}
SCSS
$custom: #2a176f;
$custom-light: #6d5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2a176f",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 252.955,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29778,
    "c": 0.1406,
    "h": 283.7
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#2A176F
secondary
#8EA53D
accent
#E93FC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A176F

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

Preview Lab → · Contrast checker → · Palette generator →

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