#2A205A#2A205A

#2A205A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.2% C 0.100 H 286.4°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#2A205A
RGBrgb(42, 32, 90)
HSLhsl(250, 48%, 24%)
HSVhsv(250, 64%, 35%)
CMYKcmyk(53.3%, 64.4%, 0%, 64.7%)
CIE-LABlab(16.81, 21.95, -33.46)
CIE-LCHlch(16.81, 40.02, 303.27°)
OKLaboklab(29.2% 0.0281 -0.0957)
OKLCHoklch(29.2% 0.1 286.4)
XYZxyz(3.3163, 2.2633, 9.9330)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A205A #505A20
analogous
#20335A #2A205A #47205A
triadic
#2A205A #5A2A20 #205A2A
tetradic
#2A205A #5A2033 #505A20 #205A47
square
#2A205A #5A2033 #505A20 #205A47
split-complementary
#2A205A #5A4720 #335A20
monochromatic
#0B0817 #15102D #2A205A #3F3087 #5440B4

Accessibility & contrast

On white

14.46
#2A205A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A205A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A205A
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A205A#FFFFFF#000000##FFFFFF
##2A205A1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#192D39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a205a;
/* rgb */ color: rgb(42, 32, 90);
/* oklch */ color: oklch(29.2% 0.100 286.4);
Tailwind
colors: {
  custom: {
    50: '#685c89',
    500: '#2a205a',
    950: '#000000',
  },
}
SCSS
$custom: #2a205a;
$custom-light: #685c89;
$custom-dark: #000000;
JSON
{
  "hex": "#2a205a",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 90
  },
  "hsl": {
    "h": 250.345,
    "s": 47.541,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29203,
    "c": 0.09978,
    "h": 286.4
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#2A205A
secondary
#828E47
accent
#D751C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2A205A

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

Preview Lab → · Contrast checker → · Palette generator →

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