#2A1970#2A1970

#2A1970 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.140 H 283.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2A1970
RGBrgb(42, 25, 112)
HSLhsl(252, 64%, 27%)
HSVhsv(252, 78%, 44%)
CMYKcmyk(62.5%, 77.7%, 0%, 56.1%)
CIE-LABlab(17.26, 33.78, -47.22)
CIE-LCHlch(17.26, 58.05, 305.58°)
OKLaboklab(30.16% 0.0316 -0.1361)
OKLCHoklch(30.16% 0.14 283.1)
XYZxyz(4.2262, 2.3571, 15.5584)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1970 #5F7019
analogous
#193470 #2A1970 #561970
triadic
#2A1970 #702A19 #19702A
tetradic
#2A1970 #701934 #5F7019 #197056
square
#2A1970 #701934 #5F7019 #197056
split-complementary
#2A1970 #705619 #347019
monochromatic
#090619 #170E3E #2A1970 #3D24A2 #5132D1

Accessibility & contrast

On white

14.27
#2A1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1970
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1970#FFFFFF#000000##FFFFFF
##2A19701.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.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: #2a1970;
/* rgb */ color: rgb(42, 25, 112);
/* oklch */ color: oklch(30.2% 0.140 283.1);
Tailwind
colors: {
  custom: {
    50: '#6d589a',
    500: '#2a1970',
    950: '#000000',
  },
}
SCSS
$custom: #2a1970;
$custom-light: #6d589a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1970",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 251.724,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.1397,
    "h": 283.1
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2A1970
secondary
#91A540
accent
#E741C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A1970

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

Preview Lab → · Contrast checker → · Palette generator →

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