#2B20A4#2B20A4

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

Color values

HEX#2B20A4
RGBrgb(43, 32, 164)
HSLhsl(245, 67%, 38%)
HSVhsv(245, 80%, 64%)
CMYKcmyk(73.8%, 80.5%, 0%, 35.7%)
CIE-LABlab(24.41, 46.88, -67.99)
CIE-LCHlch(24.41, 82.58, 304.59°)
OKLaboklab(36.9% 0.0154 -0.1966)
OKLCHoklch(36.9% 0.197 274.5)
XYZxyz(8.2114, 4.2261, 35.4977)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B20A4 #99A420
analogous
#2057A4 #2B20A4 #6D20A4
triadic
#2B20A4 #A42B20 #20A42B
tetradic
#2B20A4 #A42057 #99A420 #20A46D
square
#2B20A4 #A42057 #99A420 #20A46D
split-complementary
#2B20A4 #A46D20 #57A420
monochromatic
#100C3E #1E1671 #2B20A4 #3A2BD6 #695FE0

Accessibility & contrast

On white

11.38
#2B20A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B20A4
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B20A4#FFFFFF#000000##FFFFFF
##2B20A41.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b20a4;
/* rgb */ color: rgb(43, 32, 164);
/* oklch */ color: oklch(36.9% 0.197 274.5);
Tailwind
colors: {
  custom: {
    50: '#795fc0',
    500: '#2b20a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b20a4;
$custom-light: #795fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b20a4",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 164
  },
  "hsl": {
    "h": 245,
    "s": 67.347,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.19722,
    "h": 274.5
  },
  "luminance": 0.04227
}

Semantic roles & 50–950 ramp

primary
#2B20A4
secondary
#BCC45C
accent
#EA3EDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B20A4

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

Preview Lab → · Contrast checker → · Palette generator →

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