#2A1770#2A1770

#2A1770 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.142 H 283.5°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2A1770
RGBrgb(42, 23, 112)
HSLhsl(253, 66%, 26%)
HSVhsv(253, 79%, 44%)
CMYKcmyk(62.5%, 79.5%, 0%, 56.1%)
CIE-LABlab(16.87, 34.89, -47.86)
CIE-LCHlch(16.87, 59.23, 306.09°)
OKLaboklab(29.89% 0.0331 -0.138)
OKLCHoklch(29.89% 0.142 283.5)
XYZxyz(4.1850, 2.2746, 15.5446)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1770 #5D7017
analogous
#173170 #2A1770 #571770
triadic
#2A1770 #702A17 #17702A
tetradic
#2A1770 #701731 #5D7017 #177057
square
#2A1770 #701731 #5D7017 #177057
split-complementary
#2A1770 #705717 #317017
monochromatic
#0A0519 #170D3D #2A1770 #3D21A3 #512DD4

Accessibility & contrast

On white

14.43
#2A1770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1770
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1770#FFFFFF#000000##FFFFFF
##2A17701.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1770;
/* rgb */ color: rgb(42, 23, 112);
/* oklch */ color: oklch(29.9% 0.142 283.5);
Tailwind
colors: {
  custom: {
    50: '#6d579a',
    500: '#2a1770',
    950: '#000000',
  },
}
SCSS
$custom: #2a1770;
$custom-light: #6d579a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1770",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 252.809,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29885,
    "c": 0.14188,
    "h": 283.5
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#2A1770
secondary
#8FA63D
accent
#E93FC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1770

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

Preview Lab → · Contrast checker → · Palette generator →

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