#2A1972#2A1972

#2A1972 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.142 H 282.6°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1972
RGBrgb(42, 25, 114)
HSLhsl(251, 64%, 27%)
HSVhsv(251, 78%, 45%)
CMYKcmyk(63.2%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.47, 34.43, -48.16)
CIE-LCHlch(17.47, 59.20, 305.56°)
OKLaboklab(30.37% 0.0311 -0.1389)
OKLCHoklch(30.37% 0.142 282.6)
XYZxyz(4.3388, 2.4021, 16.1513)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1972 #617219
analogous
#193472 #2A1972 #571972
triadic
#2A1972 #722A19 #19722A
tetradic
#2A1972 #721934 #617219 #197257
square
#2A1972 #721934 #617219 #197257
split-complementary
#2A1972 #725719 #347219
monochromatic
#090619 #180E40 #2A1972 #3C24A4 #5233D2

Accessibility & contrast

On white

14.19
#2A1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1972
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1972#FFFFFF#000000##FFFFFF
##2A19721.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1972;
/* rgb */ color: rgb(42, 25, 114);
/* oklch */ color: oklch(30.4% 0.142 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e589b',
    500: '#2a1972',
    950: '#000000',
  },
}
SCSS
$custom: #2a1972;
$custom-light: #6e589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1972",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 251.461,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30373,
    "c": 0.1423,
    "h": 282.6
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#2A1972
secondary
#93A740
accent
#E741C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1972

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

Preview Lab → · Contrast checker → · Palette generator →

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