#2A20A6#2A20A6

#2A20A6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.200 H 273.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2A20A6
RGBrgb(42, 32, 166)
HSLhsl(244, 68%, 39%)
HSVhsv(244, 81%, 65%)
CMYKcmyk(74.7%, 80.7%, 0%, 34.9%)
CIE-LABlab(24.57, 47.43, -68.93)
CIE-LCHlch(24.57, 83.67, 304.53°)
OKLaboklab(37.06% 0.0136 -0.1994)
OKLCHoklch(37.06% 0.2 273.9)
XYZxyz(8.3520, 4.2776, 36.4545)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A20A6 #9CA620
analogous
#2059A6 #2A20A6 #6D20A6
triadic
#2A20A6 #A62A20 #20A62A
tetradic
#2A20A6 #A62059 #9CA620 #20A66D
square
#2A20A6 #A62059 #9CA620 #20A66D
split-complementary
#2A20A6 #A66D20 #59A620
monochromatic
#100C3F #1D1673 #2A20A6 #392DD6 #6A60E0

Accessibility & contrast

On white

11.32
#2A20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A20A6
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A20A6#FFFFFF#000000##FFFFFF
##2A20A61.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a20a6;
/* rgb */ color: rgb(42, 32, 166);
/* oklch */ color: oklch(37.1% 0.200 273.9);
Tailwind
colors: {
  custom: {
    50: '#795fc2',
    500: '#2a20a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a20a6;
$custom-light: #795fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a20a6",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 244.478,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37059,
    "c": 0.19984,
    "h": 273.9
  },
  "luminance": 0.04278
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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