#2A1673#2A1673

#2A1673 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.147 H 283.0°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2A1673
RGBrgb(42, 22, 115)
HSLhsl(253, 68%, 27%)
HSVhsv(253, 81%, 45%)
CMYKcmyk(63.5%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.01, 36.38, -49.58)
CIE-LCHlch(17.01, 61.49, 306.27°)
OKLaboklab(30.08% 0.0329 -0.1429)
OKLCHoklch(30.08% 0.147 283)
XYZxyz(4.3353, 2.3036, 16.4325)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1673 #5F7316
analogous
#163173 #2A1673 #591673
triadic
#2A1673 #732A16 #16732A
tetradic
#2A1673 #731631 #5F7316 #167359
square
#2A1673 #731631 #5F7316 #167359
split-complementary
#2A1673 #735916 #317316
monochromatic
#09051A #170C40 #2A1673 #3D20A6 #512DD7

Accessibility & contrast

On white

14.38
#2A1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1673
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1673#FFFFFF#000000##FFFFFF
##2A16731.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1673;
/* rgb */ color: rgb(42, 22, 115);
/* oklch */ color: oklch(30.1% 0.147 283.0);
Tailwind
colors: {
  custom: {
    50: '#6e569c',
    500: '#2a1673',
    950: '#000000',
  },
}
SCSS
$custom: #2a1673;
$custom-light: #6e569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1673",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 252.903,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3008,
    "c": 0.1467,
    "h": 283
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#2A1673
secondary
#91A93C
accent
#EB3DC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1673

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

Preview Lab → · Contrast checker → · Palette generator →

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