#2121AA#2121AA

#2121AA is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.206 H 270.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#2121AA
RGBrgb(33, 33, 170)
HSLhsl(240, 67%, 40%)
HSVhsv(240, 81%, 67%)
CMYKcmyk(80.6%, 80.6%, 0%, 33.3%)
CIE-LABlab(24.68, 47.59, -71.18)
CIE-LCHlch(24.68, 85.63, 303.77°)
OKLaboklab(37.13% 0.0016 -0.2061)
OKLCHoklch(37.13% 0.206 270.4)
XYZxyz(8.4243, 4.3124, 38.4108)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2121AA #AAAA21
analogous
#2166AA #2121AA #6621AA
triadic
#2121AA #AA2121 #21AA21
tetradic
#2121AA #AA2166 #AAAA21 #21AA66
square
#2121AA #AA2166 #AAAA21 #21AA66
split-complementary
#2121AA #AA6621 #66AA21
monochromatic
#0D0D43 #171777 #2121AA #3131D7 #6464E1

Accessibility & contrast

On white

11.27
#2121AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2121AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2121AA
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2121AA#FFFFFF#000000##FFFFFF
##2121AA1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AE
Deuteranopia (green-blind)
#0033A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2121aa;
/* rgb */ color: rgb(33, 33, 170);
/* oklch */ color: oklch(37.1% 0.206 270.4);
Tailwind
colors: {
  custom: {
    50: '#7760c5',
    500: '#2121aa',
    950: '#000000',
  },
}
SCSS
$custom: #2121aa;
$custom-light: #7760c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2121aa",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37129,
    "c": 0.20611,
    "h": 270.4
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#2121AA
secondary
#C6C661
accent
#EA3DEA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2121AA

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

Preview Lab → · Contrast checker → · Palette generator →

#2121AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva