#2B21AA#2B21AA

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

Color values

HEX#2B21AA
RGBrgb(43, 33, 170)
HSLhsl(244, 67%, 40%)
HSVhsv(244, 81%, 67%)
CMYKcmyk(74.7%, 80.6%, 0%, 33.3%)
CIE-LABlab(25.27, 48.26, -70.19)
CIE-LCHlch(25.27, 85.18, 304.51°)
OKLaboklab(37.7% 0.0135 -0.203)
OKLCHoklch(37.7% 0.203 273.8)
XYZxyz(8.7934, 4.5027, 38.4281)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B21AA #A0AA21
analogous
#215BAA #2B21AA #7021AA
triadic
#2B21AA #AA2B21 #21AA2B
tetradic
#2B21AA #AA215B #A0AA21 #21AA70
square
#2B21AA #AA215B #A0AA21 #21AA70
split-complementary
#2B21AA #AA7021 #5BAA21
monochromatic
#110D43 #1E1777 #2B21AA #3D31D7 #6E64E1

Accessibility & contrast

On white

11.05
#2B21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B21AA
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B21AA#FFFFFF#000000##FFFFFF
##2B21AA1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0035A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b21aa;
/* rgb */ color: rgb(43, 33, 170);
/* oklch */ color: oklch(37.7% 0.203 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a60c5',
    500: '#2b21aa',
    950: '#000000',
  },
}
SCSS
$custom: #2b21aa;
$custom-light: #7a60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b21aa",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 244.38,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37698,
    "c": 0.20347,
    "h": 273.8
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#2B21AA
secondary
#BFC661
accent
#EA3DDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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