#2B21AC#2B21AC

#2B21AC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.9% C 0.206 H 273.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2B21AC
RGBrgb(43, 33, 172)
HSLhsl(244, 68%, 40%)
HSVhsv(244, 81%, 67%)
CMYKcmyk(75%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.50, 48.88, -71.01)
CIE-LCHlch(25.50, 86.21, 304.54°)
OKLaboklab(37.93% 0.013 -0.2054)
OKLCHoklch(37.93% 0.206 273.6)
XYZxyz(8.9840, 4.5789, 39.4321)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B21AC #A2AC21
analogous
#215CAC #2B21AC #7121AC
triadic
#2B21AC #AC2B21 #21AC2B
tetradic
#2B21AC #AC215C #A2AC21 #21AC71
square
#2B21AC #AC215C #A2AC21 #21AC71
split-complementary
#2B21AC #AC7121 #5CAC21
monochromatic
#110D45 #1E1779 #2B21AC #3E32D8 #6F66E2

Accessibility & contrast

On white

10.96
#2B21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2B21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B21AC
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B21AC#FFFFFF#000000##FFFFFF
##2B21AC1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0036AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b21ac;
/* rgb */ color: rgb(43, 33, 172);
/* oklch */ color: oklch(37.9% 0.206 273.6);
Tailwind
colors: {
  custom: {
    50: '#7b60c6',
    500: '#2b21ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b21ac;
$custom-light: #7b60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b21ac",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 244.317,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37926,
    "c": 0.20582,
    "h": 273.6
  },
  "luminance": 0.0458
}

Semantic roles & 50–950 ramp

primary
#2B21AC
secondary
#C0C762
accent
#EB3DDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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