#2A204C#2A204C

#2A204C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.078 H 291.0°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2A204C
RGBrgb(42, 32, 76)
HSLhsl(254, 41%, 21%)
HSVhsv(254, 58%, 30%)
CMYKcmyk(44.7%, 57.9%, 0%, 70.2%)
CIE-LABlab(15.73, 17.19, -25.73)
CIE-LCHlch(15.73, 30.95, 303.75°)
OKLaboklab(28.06% 0.028 -0.073)
OKLCHoklch(28.06% 0.078 291)
XYZxyz(2.7755, 2.0470, 7.0849)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A204C #424C20
analogous
#202C4C #2A204C #40204C
triadic
#2A204C #4C2A20 #204C2A
tetradic
#2A204C #4C202C #424C20 #204C40
square
#2A204C #4C202C #424C20 #204C40
split-complementary
#2A204C #4C4020 #2C4C20
monochromatic
#0C0916 #120E21 #2A204C #423277 #5A44A2

Accessibility & contrast

On white

14.90
#2A204C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A204C
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A204C#FFFFFF#000000##FFFFFF
##2A204C1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a204c;
/* rgb */ color: rgb(42, 32, 76);
/* oklch */ color: oklch(28.1% 0.078 291.0);
Tailwind
colors: {
  custom: {
    50: '#665b7e',
    500: '#2a204c',
    950: '#000000',
  },
}
SCSS
$custom: #2a204c;
$custom-light: #665b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a204c",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 76
  },
  "hsl": {
    "h": 253.636,
    "s": 40.741,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2806,
    "c": 0.07819,
    "h": 291
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#2A204C
secondary
#738047
accent
#D157B5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A204C

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

Preview Lab → · Contrast checker → · Palette generator →

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