#2A063C#2A063C

#2A063C is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.4% C 0.098 H 311.2°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#2A063C
RGBrgb(42, 6, 60)
HSLhsl(280, 82%, 13%)
HSVhsv(280, 90%, 24%)
CMYKcmyk(30%, 90%, 0%, 76.5%)
CIE-LABlab(8.56, 28.29, -26.09)
CIE-LCHlch(8.56, 38.48, 317.32°)
OKLaboklab(22.45% 0.0647 -0.0739)
OKLCHoklch(22.45% 0.098 311.2)
XYZxyz(1.8354, 0.9488, 4.3605)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A063C #183C06
analogous
#0F063C #2A063C #3C0633
triadic
#2A063C #3C2A06 #063C2A
tetradic
#2A063C #3C0F06 #183C06 #06333C
square
#2A063C #3C0F06 #183C06 #06333C
split-complementary
#2A063C #333C06 #063C0F
monochromatic
#13031C #13031C #2A063C #510C74 #7811AB

Accessibility & contrast

On white

17.65
#2A063C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A063C
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A063C#FFFFFF#000000##FFFFFF
##2A063C1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173D
Deuteranopia (green-blind)
#00193B
Tritanopia (blue-blind)
#281321
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a063c;
/* rgb */ color: rgb(42, 6, 60);
/* oklch */ color: oklch(22.4% 0.098 311.2);
Tailwind
colors: {
  custom: {
    50: '#664a72',
    500: '#2a063c',
    950: '#000000',
  },
}
SCSS
$custom: #2a063c;
$custom-light: #664a72;
$custom-dark: #000000;
JSON
{
  "hex": "#2a063c",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 60
  },
  "hsl": {
    "h": 280,
    "s": 81.818,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2245,
    "c": 0.09828,
    "h": 311.2
  },
  "luminance": 0.00949
}

Semantic roles & 50–950 ramp

primary
#2A063C
secondary
#407C22
accent
#F83072
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A063C

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

Preview Lab → · Contrast checker → · Palette generator →

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