#2A205C#2A205C

#2A205C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.103 H 285.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2A205C
RGBrgb(42, 32, 92)
HSLhsl(250, 48%, 24%)
HSVhsv(250, 65%, 36%)
CMYKcmyk(54.3%, 65.2%, 0%, 63.9%)
CIE-LABlab(16.98, 22.64, -34.53)
CIE-LCHlch(16.98, 41.29, 303.25°)
OKLaboklab(29.38% 0.028 -0.0989)
OKLCHoklch(29.38% 0.103 285.8)
XYZxyz(3.4026, 2.2978, 10.3874)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A205C #525C20
analogous
#20345C #2A205C #48205C
triadic
#2A205C #5C2A20 #205C2A
tetradic
#2A205C #5C2034 #525C20 #205C48
square
#2A205C #5C2034 #525C20 #205C48
split-complementary
#2A205C #5C4820 #345C20
monochromatic
#0A0817 #15102F #2A205C #3F3089 #5340B7

Accessibility & contrast

On white

14.39
#2A205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A205C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A205C#FFFFFF#000000##FFFFFF
##2A205C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#172E3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a205c;
/* rgb */ color: rgb(42, 32, 92);
/* oklch */ color: oklch(29.4% 0.103 285.8);
Tailwind
colors: {
  custom: {
    50: '#695c8b',
    500: '#2a205c',
    950: '#000000',
  },
}
SCSS
$custom: #2a205c;
$custom-light: #695c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a205c",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 250,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29377,
    "c": 0.10277,
    "h": 285.8
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#2A205C
secondary
#849047
accent
#D850C1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A205C

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

Preview Lab → · Contrast checker → · Palette generator →

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