#2B20A7#2B20A7

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

Color values

HEX#2B20A7
RGBrgb(43, 32, 167)
HSLhsl(245, 68%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(74.3%, 80.8%, 0%, 34.5%)
CIE-LABlab(24.75, 47.81, -69.23)
CIE-LCHlch(24.75, 84.14, 304.63°)
OKLaboklab(37.24% 0.0147 -0.2002)
OKLCHoklch(37.24% 0.201 274.2)
XYZxyz(8.4855, 4.3358, 36.9414)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B20A7 #9CA720
analogous
#2059A7 #2B20A7 #6F20A7
triadic
#2B20A7 #A72B20 #20A72B
tetradic
#2B20A7 #A72059 #9CA720 #20A76F
square
#2B20A7 #A72059 #9CA720 #20A76F
split-complementary
#2B20A7 #A76F20 #59A720
monochromatic
#110C40 #1E1674 #2B20A7 #3B2DD7 #6B61E1

Accessibility & contrast

On white

11.25
#2B20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2B20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B20A7
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B20A7#FFFFFF#000000##FFFFFF
##2B20A71.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.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: #2b20a7;
/* rgb */ color: rgb(43, 32, 167);
/* oklch */ color: oklch(37.2% 0.201 274.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fc3',
    500: '#2b20a7',
    950: '#000000',
  },
}
SCSS
$custom: #2b20a7;
$custom-light: #7a5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b20a7",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 244.889,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37237,
    "c": 0.20077,
    "h": 274.2
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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