#2A1870#2A1870

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

Color values

HEX#2A1870
RGBrgb(42, 24, 112)
HSLhsl(252, 65%, 27%)
HSVhsv(252, 79%, 44%)
CMYKcmyk(62.5%, 78.6%, 0%, 56.1%)
CIE-LABlab(17.06, 34.34, -47.54)
CIE-LCHlch(17.06, 58.65, 305.84°)
OKLaboklab(30.02% 0.0324 -0.137)
OKLCHoklch(30.02% 0.141 283.3)
XYZxyz(4.2052, 2.3151, 15.5514)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1870 #5E7018
analogous
#183270 #2A1870 #561870
triadic
#2A1870 #702A18 #18702A
tetradic
#2A1870 #701832 #5E7018 #187056
square
#2A1870 #701832 #5E7018 #187056
split-complementary
#2A1870 #705618 #327018
monochromatic
#090519 #170D3E #2A1870 #3D23A2 #5130D3

Accessibility & contrast

On white

14.35
#2A1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1870
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1870#FFFFFF#000000##FFFFFF
##2A18701.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1870;
/* rgb */ color: rgb(42, 24, 112);
/* oklch */ color: oklch(30.0% 0.141 283.3);
Tailwind
colors: {
  custom: {
    50: '#6d579a',
    500: '#2a1870',
    950: '#000000',
  },
}
SCSS
$custom: #2a1870;
$custom-light: #6d579a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1870",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 252.273,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30021,
    "c": 0.1408,
    "h": 283.3
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#2A1870
secondary
#90A53E
accent
#E840C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1870

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

Preview Lab → · Contrast checker → · Palette generator →

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