#2A1174#2A1174

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

Color values

HEX#2A1174
RGBrgb(42, 17, 116)
HSLhsl(255, 74%, 26%)
HSVhsv(255, 85%, 45%)
CMYKcmyk(63.8%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.27, 39.14, -51.43)
CIE-LCHlch(16.27, 64.63, 307.27°)
OKLaboklab(29.61% 0.0357 -0.1483)
OKLCHoklch(29.61% 0.153 283.5)
XYZxyz(4.3067, 2.1538, 16.7084)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1174 #5B7411
analogous
#112974 #2A1174 #5B1174
triadic
#2A1174 #742A11 #11742A
tetradic
#2A1174 #741129 #5B7411 #11745B
square
#2A1174 #741129 #5B7411 #11745B
split-complementary
#2A1174 #745B11 #297411
monochromatic
#0A041B #17093F #2A1174 #3D19A9 #5121DE

Accessibility & contrast

On white

14.68
#2A1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1174
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1174#FFFFFF#000000##FFFFFF
##2A11741.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1174;
/* rgb */ color: rgb(42, 17, 116);
/* oklch */ color: oklch(29.6% 0.153 283.5);
Tailwind
colors: {
  custom: {
    50: '#6f549d',
    500: '#2a1174',
    950: '#000000',
  },
}
SCSS
$custom: #2a1174;
$custom-light: #6f549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1174",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 255.152,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29606,
    "c": 0.15253,
    "h": 283.5
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#2A1174
secondary
#8DAB36
accent
#F137C2
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1174

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

Preview Lab → · Contrast checker → · Palette generator →

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