#2A204B#2A204B

#2A204B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.077 H 291.4°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2A204B
RGBrgb(42, 32, 75)
HSLhsl(254, 40%, 21%)
HSVhsv(254, 57%, 29%)
CMYKcmyk(44%, 57.3%, 0%, 70.6%)
CIE-LABlab(15.66, 16.86, -25.16)
CIE-LCHlch(15.66, 30.29, 303.83°)
OKLaboklab(27.98% 0.0279 -0.0713)
OKLCHoklch(27.98% 0.077 291.4)
XYZxyz(2.7410, 2.0332, 6.9033)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A204B #414B20
analogous
#202B4B #2A204B #3F204B
triadic
#2A204B #4B2A20 #204B2A
tetradic
#2A204B #4B202B #414B20 #204B3F
square
#2A204B #4B202B #414B20 #204B3F
split-complementary
#2A204B #4B3F20 #2B4B20
monochromatic
#0C0915 #120E20 #2A204B #423276 #5A45A1

Accessibility & contrast

On white

14.93
#2A204B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A204B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A204B
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A204B#FFFFFF#000000##FFFFFF
##2A204B1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E284C
Deuteranopia (green-blind)
#0F264A
Tritanopia (blue-blind)
#212932
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a204b;
/* rgb */ color: rgb(42, 32, 75);
/* oklch */ color: oklch(28.0% 0.077 291.4);
Tailwind
colors: {
  custom: {
    50: '#665b7d',
    500: '#2a204b',
    950: '#000000',
  },
}
SCSS
$custom: #2a204b;
$custom-light: #665b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a204b",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 75
  },
  "hsl": {
    "h": 253.953,
    "s": 40.187,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27984,
    "c": 0.0766,
    "h": 291.4
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#2A204B
secondary
#727F47
accent
#D058B4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A204B

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

Preview Lab → · Contrast checker → · Palette generator →

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