#2A1863#2A1863

#2A1863 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.124 H 286.7°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2A1863
RGBrgb(42, 24, 99)
HSLhsl(254, 61%, 24%)
HSVhsv(254, 76%, 39%)
CMYKcmyk(57.6%, 75.8%, 0%, 61.2%)
CIE-LABlab(15.73, 30.11, -41.21)
CIE-LCHlch(15.73, 51.04, 306.15°)
OKLaboklab(28.67% 0.0357 -0.1185)
OKLCHoklch(28.67% 0.124 286.7)
XYZxyz(3.5329, 2.0462, 12.0108)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1863 #516318
analogous
#182C63 #2A1863 #501863
triadic
#2A1863 #632A18 #18632A
tetradic
#2A1863 #63182C #516318 #186350
square
#2A1863 #63182C #516318 #186350
split-complementary
#2A1863 #635018 #2C6318
monochromatic
#0A0619 #150C32 #2A1863 #3F2494 #5430C6

Accessibility & contrast

On white

14.90
#2A1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1863
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1863#FFFFFF#000000##FFFFFF
##2A18631.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#122C3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1863;
/* rgb */ color: rgb(42, 24, 99);
/* oklch */ color: oklch(28.7% 0.124 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5790',
    500: '#2a1863',
    950: '#000000',
  },
}
SCSS
$custom: #2a1863;
$custom-light: #6b5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1863",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 254.4,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28673,
    "c": 0.12376,
    "h": 286.7
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#2A1863
secondary
#83993E
accent
#E444BE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2A1863

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

Preview Lab → · Contrast checker → · Palette generator →

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