#2A1370#2A1370

#2A1370 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.146 H 284.3°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2A1370
RGBrgb(42, 19, 112)
HSLhsl(255, 71%, 26%)
HSVhsv(255, 83%, 44%)
CMYKcmyk(62.5%, 83%, 0%, 56.1%)
CIE-LABlab(16.14, 36.97, -49.05)
CIE-LCHlch(16.14, 61.43, 307.00°)
OKLaboklab(29.38% 0.0359 -0.1414)
OKLCHoklch(29.38% 0.146 284.3)
XYZxyz(4.1114, 2.1276, 15.5201)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1370 #597013
analogous
#132A70 #2A1370 #581370
triadic
#2A1370 #702A13 #13702A
tetradic
#2A1370 #70132A #597013 #137058
square
#2A1370 #70132A #597013 #137058
split-complementary
#2A1370 #705813 #2A7013
monochromatic
#0A041A #160A3C #2A1370 #3E1CA4 #5125D9

Accessibility & contrast

On white

14.73
#2A1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1370
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1370#FFFFFF#000000##FFFFFF
##2A13701.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1370;
/* rgb */ color: rgb(42, 19, 112);
/* oklch */ color: oklch(29.4% 0.146 284.3);
Tailwind
colors: {
  custom: {
    50: '#6e549a',
    500: '#2a1370',
    950: '#000000',
  },
}
SCSS
$custom: #2a1370;
$custom-light: #6e549a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1370",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 254.839,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2938,
    "c": 0.14588,
    "h": 284.3
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#2A1370
secondary
#8BA738
accent
#EE3AC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1370

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

Preview Lab → · Contrast checker → · Palette generator →

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