#2A204F#2A204F

#2A204F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.083 H 289.8°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2A204F
RGBrgb(42, 32, 79)
HSLhsl(253, 42%, 22%)
HSVhsv(253, 59%, 31%)
CMYKcmyk(46.8%, 59.5%, 0%, 69%)
CIE-LABlab(15.95, 18.20, -27.43)
CIE-LCHlch(15.95, 32.92, 303.56°)
OKLaboklab(28.29% 0.0282 -0.078)
OKLCHoklch(28.29% 0.083 289.8)
XYZxyz(2.8822, 2.0897, 7.6471)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A204F #454F20
analogous
#202E4F #2A204F #42204F
triadic
#2A204F #4F2A20 #204F2A
tetradic
#2A204F #4F202E #454F20 #204F42
square
#2A204F #4F202E #454F20 #204F42
split-complementary
#2A204F #4F4220 #2E4F20
monochromatic
#0C0916 #130E23 #2A204F #41327B #5843A6

Accessibility & contrast

On white

14.81
#2A204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A204F
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A204F#FFFFFF#000000##FFFFFF
##2A204F1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092951
Deuteranopia (green-blind)
#0A274E
Tritanopia (blue-blind)
#1F2A34
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a204f;
/* rgb */ color: rgb(42, 32, 79);
/* oklch */ color: oklch(28.3% 0.083 289.8);
Tailwind
colors: {
  custom: {
    50: '#665b81',
    500: '#2a204f',
    950: '#000000',
  },
}
SCSS
$custom: #2a204f;
$custom-light: #665b81;
$custom-dark: #000000;
JSON
{
  "hex": "#2a204f",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 252.766,
    "s": 42.342,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28293,
    "c": 0.08292,
    "h": 289.8
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#2A204F
secondary
#778347
accent
#D256B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A204F

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

Preview Lab → · Contrast checker → · Palette generator →

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