#2A203A#2A203A

#2A203A is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.8% C 0.049 H 300.9°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#2A203A
RGBrgb(42, 32, 58)
HSLhsl(263, 29%, 18%)
HSVhsv(263, 45%, 23%)
CMYKcmyk(27.6%, 44.8%, 0%, 77.3%)
CIE-LABlab(14.57, 11.47, -15.07)
CIE-LCHlch(14.57, 18.93, 307.27°)
OKLaboklab(26.81% 0.0251 -0.0419)
OKLCHoklch(26.81% 0.049 300.9)
XYZxyz(2.2349, 1.8307, 4.2378)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A203A #303A20
analogous
#20233A #2A203A #37203A
triadic
#2A203A #3A2A20 #203A2A
tetradic
#2A203A #3A2023 #303A20 #203A37
square
#2A203A #3A2023 #303A20 #203A37
split-complementary
#2A203A #3A3720 #233A20
monochromatic
#0E0B14 #0E0B14 #2A203A #473661 #634C89

Accessibility & contrast

On white

15.37
#2A203A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A203A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A203A
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A203A#FFFFFF#000000##FFFFFF
##2A203A1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A253B
Deuteranopia (green-blind)
#1C2539
Tritanopia (blue-blind)
#27242A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a203a;
/* rgb */ color: rgb(42, 32, 58);
/* oklch */ color: oklch(26.8% 0.049 300.9);
Tailwind
colors: {
  custom: {
    50: '#645b70',
    500: '#2a203a',
    950: '#000000',
  },
}
SCSS
$custom: #2a203a;
$custom-light: #645b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a203a",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 58
  },
  "hsl": {
    "h": 263.077,
    "s": 28.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26812,
    "c": 0.04883,
    "h": 300.9
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#2A203A
secondary
#5F6D49
accent
#C5639F
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2A203A

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

Preview Lab → · Contrast checker → · Palette generator →

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