#2A1774#2A1774

#2A1774 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.147 H 282.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2A1774
RGBrgb(42, 23, 116)
HSLhsl(252, 67%, 27%)
HSVhsv(252, 80%, 45%)
CMYKcmyk(63.8%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.30, 36.17, -49.74)
CIE-LCHlch(17.30, 61.50, 306.02°)
OKLaboklab(30.32% 0.032 -0.1434)
OKLCHoklch(30.32% 0.147 282.6)
XYZxyz(4.4126, 2.3657, 16.7437)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1774 #617417
analogous
#173374 #2A1774 #591774
triadic
#2A1774 #742A17 #17742A
tetradic
#2A1774 #741733 #617417 #177459
square
#2A1774 #741733 #617417 #177459
split-complementary
#2A1774 #745917 #337417
monochromatic
#09051A #180D41 #2A1774 #3C21A7 #5230D6

Accessibility & contrast

On white

14.25
#2A1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1774
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1774#FFFFFF#000000##FFFFFF
##2A17741.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1774;
/* rgb */ color: rgb(42, 23, 116);
/* oklch */ color: oklch(30.3% 0.147 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e579d',
    500: '#2a1774',
    950: '#000000',
  },
}
SCSS
$custom: #2a1774;
$custom-light: #6e579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1774",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 252.258,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30319,
    "c": 0.14695,
    "h": 282.6
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#2A1774
secondary
#93A93D
accent
#EA3EC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1774

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

Preview Lab → · Contrast checker → · Palette generator →

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