#2A1670#2A1670

#2A1670 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.143 H 283.7°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1670
RGBrgb(42, 22, 112)
HSLhsl(253, 67%, 26%)
HSVhsv(253, 80%, 44%)
CMYKcmyk(62.5%, 80.4%, 0%, 56.1%)
CIE-LABlab(16.68, 35.43, -48.17)
CIE-LCHlch(16.68, 59.80, 306.33°)
OKLaboklab(29.75% 0.0339 -0.1388)
OKLCHoklch(29.75% 0.143 283.7)
XYZxyz(4.1655, 2.2356, 15.5381)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1670 #5C7016
analogous
#162F70 #2A1670 #571670
triadic
#2A1670 #702A16 #16702A
tetradic
#2A1670 #70162F #5C7016 #167057
square
#2A1670 #70162F #5C7016 #167057
split-complementary
#2A1670 #705716 #2F7016
monochromatic
#0A051A #170C3D #2A1670 #3D20A3 #512BD5

Accessibility & contrast

On white

14.51
#2A1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1670
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1670#FFFFFF#000000##FFFFFF
##2A16701.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1670;
/* rgb */ color: rgb(42, 22, 112);
/* oklch */ color: oklch(29.8% 0.143 283.7);
Tailwind
colors: {
  custom: {
    50: '#6d569a',
    500: '#2a1670',
    950: '#000000',
  },
}
SCSS
$custom: #2a1670;
$custom-light: #6d569a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1670",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 253.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29753,
    "c": 0.14292,
    "h": 283.7
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#2A1670
secondary
#8EA63C
accent
#EA3EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1670

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

Preview Lab → · Contrast checker → · Palette generator →

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