#2A1973#2A1973

#2A1973 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.144 H 282.4°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2A1973
RGBrgb(42, 25, 115)
HSLhsl(251, 64%, 27%)
HSVhsv(251, 78%, 45%)
CMYKcmyk(63.5%, 78.3%, 0%, 54.9%)
CIE-LABlab(17.58, 34.75, -48.64)
CIE-LCHlch(17.58, 59.78, 305.55°)
OKLaboklab(30.48% 0.0308 -0.1402)
OKLCHoklch(30.48% 0.144 282.4)
XYZxyz(4.3960, 2.4250, 16.4528)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1973 #627319
analogous
#193573 #2A1973 #571973
triadic
#2A1973 #732A19 #19732A
tetradic
#2A1973 #731935 #627319 #197357
square
#2A1973 #731935 #627319 #197357
split-complementary
#2A1973 #735719 #357319
monochromatic
#090519 #180E41 #2A1973 #3C24A5 #5234D3

Accessibility & contrast

On white

14.14
#2A1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1973
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1973#FFFFFF#000000##FFFFFF
##2A19731.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1973;
/* rgb */ color: rgb(42, 25, 115);
/* oklch */ color: oklch(30.5% 0.144 282.4);
Tailwind
colors: {
  custom: {
    50: '#6e589c',
    500: '#2a1973',
    950: '#000000',
  },
}
SCSS
$custom: #2a1973;
$custom-light: #6e589c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1973",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 251.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3048,
    "c": 0.14359,
    "h": 282.4
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#2A1973
secondary
#94A840
accent
#E741C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1973

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

Preview Lab → · Contrast checker → · Palette generator →

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