#2B21AF#2B21AF

#2B21AF is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.209 H 273.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2B21AF
RGBrgb(43, 33, 175)
HSLhsl(244, 68%, 41%)
HSVhsv(244, 81%, 69%)
CMYKcmyk(75.4%, 81.1%, 0%, 31.4%)
CIE-LABlab(25.85, 49.81, -72.23)
CIE-LCHlch(25.85, 87.74, 304.59°)
OKLaboklab(38.27% 0.0123 -0.2089)
OKLCHoklch(38.27% 0.209 273.4)
XYZxyz(9.2754, 4.6955, 40.9666)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B21AF #A5AF21
analogous
#215EAF #2B21AF #7221AF
triadic
#2B21AF #AF2B21 #21AF2B
tetradic
#2B21AF #AF215E #A5AF21 #21AF72
square
#2B21AF #AF215E #A5AF21 #21AF72
split-complementary
#2B21AF #AF7221 #5EAF21
monochromatic
#120E48 #1E177C #2B21AF #4034D9 #7168E3

Accessibility & contrast

On white

10.83
#2B21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B21AF
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B21AF#FFFFFF#000000##FFFFFF
##2B21AF1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B3
Deuteranopia (green-blind)
#0036AD
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b21af;
/* rgb */ color: rgb(43, 33, 175);
/* oklch */ color: oklch(38.3% 0.209 273.4);
Tailwind
colors: {
  custom: {
    50: '#7b60c8',
    500: '#2b21af',
    950: '#000000',
  },
}
SCSS
$custom: #2b21af;
$custom-light: #7b60c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b21af",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 244.225,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.3827,
    "c": 0.20931,
    "h": 273.4
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#2B21AF
secondary
#C1C864
accent
#EB3DDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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