#2A063A#2A063A

#2A063A is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.3% C 0.096 H 312.7°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#2A063A
RGBrgb(42, 6, 58)
HSLhsl(282, 81%, 13%)
HSVhsv(282, 90%, 23%)
CMYKcmyk(27.6%, 89.7%, 0%, 77.3%)
CIE-LABlab(8.38, 27.80, -24.94)
CIE-LCHlch(8.38, 37.34, 318.10°)
OKLaboklab(22.27% 0.0652 -0.0706)
OKLCHoklch(22.27% 0.096 312.7)
XYZxyz(1.7836, 0.9280, 4.0873)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A063A #163A06
analogous
#10063A #2A063A #3A0630
triadic
#2A063A #3A2A06 #063A2A
tetradic
#2A063A #3A1006 #163A06 #06303A
square
#2A063A #3A1006 #163A06 #06303A
split-complementary
#2A063A #303A06 #063A10
monochromatic
#14031C #14031C #2A063A #520C71 #7A11A9

Accessibility & contrast

On white

17.71
#2A063A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A063A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A063A
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A063A#FFFFFF#000000##FFFFFF
##2A063A1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#011939
Tritanopia (blue-blind)
#281220
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a063a;
/* rgb */ color: rgb(42, 6, 58);
/* oklch */ color: oklch(22.3% 0.096 312.7);
Tailwind
colors: {
  custom: {
    50: '#664a70',
    500: '#2a063a',
    950: '#000000',
  },
}
SCSS
$custom: #2a063a;
$custom-light: #664a70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a063a",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 58
  },
  "hsl": {
    "h": 281.538,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22267,
    "c": 0.09611,
    "h": 312.7
  },
  "luminance": 0.00928
}

Semantic roles & 50–950 ramp

primary
#2A063A
secondary
#3D7A22
accent
#F8306E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A063A

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

Preview Lab → · Contrast checker → · Palette generator →

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