#2A1672#2A1672

#2A1672 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.145 H 283.2°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#2A1672
RGBrgb(42, 22, 114)
HSLhsl(253, 68%, 27%)
HSVhsv(253, 81%, 45%)
CMYKcmyk(63.2%, 80.7%, 0%, 55.3%)
CIE-LABlab(16.90, 36.06, -49.11)
CIE-LCHlch(16.90, 60.93, 306.29°)
OKLaboklab(29.97% 0.0333 -0.1416)
OKLCHoklch(29.97% 0.145 283.2)
XYZxyz(4.2781, 2.2807, 16.1311)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1672 #5E7216
analogous
#163072 #2A1672 #581672
triadic
#2A1672 #722A16 #16722A
tetradic
#2A1672 #721630 #5E7216 #167258
square
#2A1672 #721630 #5E7216 #167258
split-complementary
#2A1672 #725816 #307216
monochromatic
#09051A #170C3F #2A1672 #3D20A5 #512CD6

Accessibility & contrast

On white

14.42
#2A1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1672
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1672#FFFFFF#000000##FFFFFF
##2A16721.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1672;
/* rgb */ color: rgb(42, 22, 114);
/* oklch */ color: oklch(30.0% 0.145 283.2);
Tailwind
colors: {
  custom: {
    50: '#6e569c',
    500: '#2a1672',
    950: '#000000',
  },
}
SCSS
$custom: #2a1672;
$custom-light: #6e569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1672",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 253.043,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29971,
    "c": 0.14544,
    "h": 283.2
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#2A1672
secondary
#90A83C
accent
#EB3DC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1672

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

Preview Lab → · Contrast checker → · Palette generator →

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