#2A205B#2A205B

#2A205B is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.101 H 286.1°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#2A205B
RGBrgb(42, 32, 91)
HSLhsl(250, 48%, 24%)
HSVhsv(250, 65%, 36%)
CMYKcmyk(53.8%, 64.8%, 0%, 64.3%)
CIE-LABlab(16.89, 22.30, -33.99)
CIE-LCHlch(16.89, 40.65, 303.26°)
OKLaboklab(29.29% 0.0281 -0.0973)
OKLCHoklch(29.29% 0.101 286.1)
XYZxyz(3.3591, 2.2804, 10.1587)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A205B #515B20
analogous
#20345B #2A205B #48205B
triadic
#2A205B #5B2A20 #205B2A
tetradic
#2A205B #5B2034 #515B20 #205B48
square
#2A205B #5B2034 #515B20 #205B48
split-complementary
#2A205B #5B4820 #345B20
monochromatic
#0A0817 #15102E #2A205B #3F3088 #5440B6

Accessibility & contrast

On white

14.42
#2A205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A205B
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A205B#FFFFFF#000000##FFFFFF
##2A205B1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#182E3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a205b;
/* rgb */ color: rgb(42, 32, 91);
/* oklch */ color: oklch(29.3% 0.101 286.1);
Tailwind
colors: {
  custom: {
    50: '#685c8a',
    500: '#2a205b',
    950: '#000000',
  },
}
SCSS
$custom: #2a205b;
$custom-light: #685c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a205b",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 250.169,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2929,
    "c": 0.10127,
    "h": 286.1
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#2A205B
secondary
#838F47
accent
#D850C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A205B

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

Preview Lab → · Contrast checker → · Palette generator →

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