#2B20A3#2B20A3

#2B20A3 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.196 H 274.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2B20A3
RGBrgb(43, 32, 163)
HSLhsl(245, 67%, 38%)
HSVhsv(245, 80%, 64%)
CMYKcmyk(73.6%, 80.4%, 0%, 36.1%)
CIE-LABlab(24.29, 46.56, -67.57)
CIE-LCHlch(24.29, 82.06, 304.57°)
OKLaboklab(36.78% 0.0157 -0.1954)
OKLCHoklch(36.78% 0.196 274.6)
XYZxyz(8.1214, 4.1902, 35.0240)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B20A3 #98A320
analogous
#2056A3 #2B20A3 #6C20A3
triadic
#2B20A3 #A32B20 #20A32B
tetradic
#2B20A3 #A32056 #98A320 #20A36C
square
#2B20A3 #A32056 #98A320 #20A36C
split-complementary
#2B20A3 #A36C20 #56A320
monochromatic
#100C3D #1E1670 #2B20A3 #392BD5 #695EDF

Accessibility & contrast

On white

11.42
#2B20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B20A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B20A3
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B20A3#FFFFFF#000000##FFFFFF
##2B20A31.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA7
Deuteranopia (green-blind)
#0034A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b20a3;
/* rgb */ color: rgb(43, 32, 163);
/* oklch */ color: oklch(36.8% 0.196 274.6);
Tailwind
colors: {
  custom: {
    50: '#795fc0',
    500: '#2b20a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b20a3;
$custom-light: #795fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b20a3",
  "rgb": {
    "r": 43,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 245.038,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36782,
    "c": 0.19604,
    "h": 274.6
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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