#2A20AB#2A20AB

#2A20AB is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.206 H 273.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2A20AB
RGBrgb(42, 32, 171)
HSLhsl(244, 68%, 40%)
HSVhsv(244, 81%, 67%)
CMYKcmyk(75.4%, 81.3%, 0%, 32.9%)
CIE-LABlab(25.15, 48.99, -70.98)
CIE-LCHlch(25.15, 86.25, 304.61°)
OKLaboklab(37.63% 0.0123 -0.2053)
OKLCHoklch(37.63% 0.206 273.4)
XYZxyz(8.8196, 4.4646, 38.9171)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A20AB #A1AB20
analogous
#205BAB #2A20AB #7020AB
triadic
#2A20AB #AB2A20 #20AB2A
tetradic
#2A20AB #AB205B #A1AB20 #20AB70
square
#2A20AB #AB205B #A1AB20 #20AB70
split-complementary
#2A20AB #AB7020 #5BAB20
monochromatic
#110D44 #1D1677 #2A20AB #3C30D8 #6D63E2

Accessibility & contrast

On white

11.09
#2A20AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A20AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A20AB
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A20AB#FFFFFF#000000##FFFFFF
##2A20AB1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AF
Deuteranopia (green-blind)
#0035A9
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a20ab;
/* rgb */ color: rgb(42, 32, 171);
/* oklch */ color: oklch(37.6% 0.206 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a60c5',
    500: '#2a20ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a20ab;
$custom-light: #7a60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a20ab",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 171
  },
  "hsl": {
    "h": 244.317,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37633,
    "c": 0.20571,
    "h": 273.4
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#2A20AB
secondary
#C0C760
accent
#EB3CDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A20AB

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

Preview Lab → · Contrast checker → · Palette generator →

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