#2A1173#2A1173

#2A1173 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.151 H 283.8°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1173
RGBrgb(42, 17, 115)
HSLhsl(255, 74%, 26%)
HSVhsv(255, 85%, 45%)
CMYKcmyk(63.5%, 85.2%, 0%, 54.9%)
CIE-LABlab(16.16, 38.84, -50.97)
CIE-LCHlch(16.16, 64.08, 307.30°)
OKLaboklab(29.49% 0.0361 -0.147)
OKLCHoklch(29.49% 0.151 283.8)
XYZxyz(4.2489, 2.1307, 16.4037)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1173 #5A7311
analogous
#112973 #2A1173 #5B1173
triadic
#2A1173 #732A11 #11732A
tetradic
#2A1173 #731129 #5A7311 #11735B
square
#2A1173 #731129 #5A7311 #11735B
split-complementary
#2A1173 #735B11 #297311
monochromatic
#0A041B #17093E #2A1173 #3D19A8 #5121DE

Accessibility & contrast

On white

14.72
#2A1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1173
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1173#FFFFFF#000000##FFFFFF
##2A11731.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1173;
/* rgb */ color: rgb(42, 17, 115);
/* oklch */ color: oklch(29.5% 0.151 283.8);
Tailwind
colors: {
  custom: {
    50: '#6f549c',
    500: '#2a1173',
    950: '#000000',
  },
}
SCSS
$custom: #2a1173;
$custom-light: #6f549c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1173",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 255.306,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29492,
    "c": 0.15132,
    "h": 283.8
  },
  "luminance": 0.02131
}

Semantic roles & 50–950 ramp

primary
#2A1173
secondary
#8CAA36
accent
#F137C1
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1173

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

Preview Lab → · Contrast checker → · Palette generator →

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