#2A20A5#2A20A5

#2A20A5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.199 H 274.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A20A5
RGBrgb(42, 32, 165)
HSLhsl(245, 68%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.5%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.45, 47.11, -68.52)
CIE-LCHlch(24.45, 83.15, 304.51°)
OKLaboklab(36.94% 0.0139 -0.1982)
OKLCHoklch(36.94% 0.199 274)
XYZxyz(8.2606, 4.2410, 35.9733)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A20A5 #9BA520
analogous
#2058A5 #2A20A5 #6C20A5
triadic
#2A20A5 #A52A20 #20A52A
tetradic
#2A20A5 #A52058 #9BA520 #20A56C
square
#2A20A5 #A52058 #9BA520 #20A56C
split-complementary
#2A20A5 #A56C20 #58A520
monochromatic
#100C3E #1D1672 #2A20A5 #392CD6 #695FE0

Accessibility & contrast

On white

11.36
#2A20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A20A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A20A5
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A20A5#FFFFFF#000000##FFFFFF
##2A20A51.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a20a5;
/* rgb */ color: rgb(42, 32, 165);
/* oklch */ color: oklch(36.9% 0.199 274.0);
Tailwind
colors: {
  custom: {
    50: '#795fc1',
    500: '#2a20a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a20a5;
$custom-light: #795fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a20a5",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 244.511,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36944,
    "c": 0.19866,
    "h": 274
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#2A20A5
secondary
#BDC55C
accent
#EA3DDD
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2A20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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