#2A053F#2A053F

#2A053F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.103 H 309.2°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#2A053F
RGBrgb(42, 5, 63)
HSLhsl(278, 85%, 13%)
HSVhsv(278, 92%, 25%)
CMYKcmyk(33.3%, 92.1%, 0%, 75.3%)
CIE-LABlab(8.65, 29.59, -28.08)
CIE-LCHlch(8.65, 40.79, 316.49°)
OKLaboklab(22.6% 0.0651 -0.0798)
OKLCHoklch(22.6% 0.103 309.2)
XYZxyz(1.9061, 0.9597, 4.7865)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A053F #1A3F05
analogous
#0D053F #2A053F #3F0537
triadic
#2A053F #3F2A05 #053F2A
tetradic
#2A053F #3F0D05 #1A3F05 #05373F
square
#2A053F #3F0D05 #1A3F05 #05373F
split-complementary
#2A053F #373F05 #053F0D
monochromatic
#13021C #13021C #2A053F #500978 #760EB0

Accessibility & contrast

On white

17.62
#2A053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A053F
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A053F#FFFFFF#000000##FFFFFF
##2A053F1.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#271422
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a053f;
/* rgb */ color: rgb(42, 5, 63);
/* oklch */ color: oklch(22.6% 0.103 309.2);
Tailwind
colors: {
  custom: {
    50: '#674a74',
    500: '#2a053f',
    950: '#000000',
  },
}
SCSS
$custom: #2a053f;
$custom-light: #674a74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a053f",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 278.276,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.22603,
    "c": 0.10301,
    "h": 309.2
  },
  "luminance": 0.0096
}

Semantic roles & 50–950 ramp

primary
#2A053F
secondary
#438020
accent
#FC2C77
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A053F

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

Preview Lab → · Contrast checker → · Palette generator →

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