#2A20A7#2A20A7

#2A20A7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.201 H 273.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2A20A7
RGBrgb(42, 32, 167)
HSLhsl(244, 68%, 39%)
HSVhsv(244, 81%, 65%)
CMYKcmyk(74.9%, 80.8%, 0%, 34.5%)
CIE-LABlab(24.68, 47.74, -69.34)
CIE-LCHlch(24.68, 84.19, 304.55°)
OKLaboklab(37.17% 0.0134 -0.2006)
OKLCHoklch(37.17% 0.201 273.8)
XYZxyz(8.4441, 4.3144, 36.9395)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A20A7 #9DA720
analogous
#205AA7 #2A20A7 #6E20A7
triadic
#2A20A7 #A72A20 #20A72A
tetradic
#2A20A7 #A7205A #9DA720 #20A76E
square
#2A20A7 #A7205A #9DA720 #20A76E
split-complementary
#2A20A7 #A76E20 #5AA720
monochromatic
#100C40 #1D1674 #2A20A7 #3A2DD7 #6A61E1

Accessibility & contrast

On white

11.27
#2A20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A20A7
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A20A7#FFFFFF#000000##FFFFFF
##2A20A71.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a20a7;
/* rgb */ color: rgb(42, 32, 167);
/* oklch */ color: oklch(37.2% 0.201 273.8);
Tailwind
colors: {
  custom: {
    50: '#795fc3',
    500: '#2a20a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a20a7;
$custom-light: #795fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a20a7",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 244.444,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.20102,
    "h": 273.8
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#2A20A7
secondary
#BEC55D
accent
#EB3DDE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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