#2B20AB#2B20AB

#2B20AB is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.205 H 273.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2B20AB
RGBrgb(43, 32, 171)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 67%)
CMYKcmyk(74.9%, 81.3%, 0%, 32.9%)
CIE-LABlab(25.22, 49.06, -70.87)
CIE-LCHlch(25.22, 86.20, 304.69°)
OKLaboklab(37.7% 0.0136 -0.205)
OKLCHoklch(37.7% 0.205 273.8)
XYZxyz(8.8610, 4.4860, 38.9191)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B20AB #A0AB20
analogous
#205BAB #2B20AB #7020AB
triadic
#2B20AB #AB2B20 #20AB2B
tetradic
#2B20AB #AB205B #A0AB20 #20AB70
square
#2B20AB #AB205B #A0AB20 #20AB70
split-complementary
#2B20AB #AB7020 #5BAB20
monochromatic
#110D44 #1E1677 #2B20AB #3D30D8 #6E63E2

Accessibility & contrast

On white

11.07
#2B20AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2B20AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B20AB
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B20AB#FFFFFF#000000##FFFFFF
##2B20AB1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.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: #2b20ab;
/* rgb */ color: rgb(43, 32, 171);
/* oklch */ color: oklch(37.7% 0.205 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a60c5',
    500: '#2b20ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b20ab;
$custom-light: #7a60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b20ab",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 171
  },
  "hsl": {
    "h": 244.748,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37696,
    "c": 0.20545,
    "h": 273.8
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#2B20AB
secondary
#BFC760
accent
#EB3CDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B20AB

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

Preview Lab → · Contrast checker → · Palette generator →

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