#2A0338#2A0338

#2A0338 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.7% C 0.099 H 315.0°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#2A0338
RGBrgb(42, 3, 56)
HSLhsl(284, 90%, 12%)
HSVhsv(284, 95%, 22%)
CMYKcmyk(25%, 94.6%, 0%, 78%)
CIE-LABlab(7.61, 29.00, -24.72)
CIE-LCHlch(7.61, 38.11, 319.55°)
OKLaboklab(21.67% 0.07 -0.0699)
OKLCHoklch(21.67% 0.099 315)
XYZxyz(1.7011, 0.8430, 3.8137)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0338 #113803
analogous
#100338 #2A0338 #38032C
triadic
#2A0338 #382A03 #03382A
tetradic
#2A0338 #381003 #113803 #032C38
square
#2A0338 #381003 #113803 #032C38
split-complementary
#2A0338 #2C3803 #033810
monochromatic
#16021D #16021D #2A0338 #560672 #8109AC

Accessibility & contrast

On white

17.97
#2A0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A0338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0338
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0338#FFFFFF#000000##FFFFFF
##2A03381.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#011837
Tritanopia (blue-blind)
#290F1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a0338;
/* rgb */ color: rgb(42, 3, 56);
/* oklch */ color: oklch(21.7% 0.099 315.0);
Tailwind
colors: {
  custom: {
    50: '#66486f',
    500: '#2a0338',
    950: '#000000',
  },
}
SCSS
$custom: #2a0338;
$custom-light: #66486f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0338",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 284.151,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21672,
    "c": 0.09895,
    "h": 315
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#2A0338
secondary
#357B1C
accent
#FF2961
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0338

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

Preview Lab → · Contrast checker → · Palette generator →

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