#2B21B0#2B21B0

#2B21B0 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.4% C 0.210 H 273.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2B21B0
RGBrgb(43, 33, 176)
HSLhsl(244, 68%, 41%)
HSVhsv(244, 81%, 69%)
CMYKcmyk(75.6%, 81.3%, 0%, 31%)
CIE-LABlab(25.97, 50.12, -72.64)
CIE-LCHlch(25.97, 88.25, 304.61°)
OKLaboklab(38.39% 0.012 -0.2101)
OKLCHoklch(38.39% 0.21 273.3)
XYZxyz(9.3740, 4.7349, 41.4858)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B21B0 #A6B021
analogous
#215EB0 #2B21B0 #7221B0
triadic
#2B21B0 #B02B21 #21B02B
tetradic
#2B21B0 #B0215E #A6B021 #21B072
square
#2B21B0 #B0215E #A6B021 #21B072
split-complementary
#2B21B0 #B07221 #5EB021
monochromatic
#120E49 #1E177C #2B21B0 #4135D9 #7169E3

Accessibility & contrast

On white

10.78
#2B21B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2B21B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B21B0
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B21B0#FFFFFF#000000##FFFFFF
##2B21B01.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0037AE
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b21b0;
/* rgb */ color: rgb(43, 33, 176);
/* oklch */ color: oklch(38.4% 0.210 273.3);
Tailwind
colors: {
  custom: {
    50: '#7c61c9',
    500: '#2b21b0',
    950: '#000000',
  },
}
SCSS
$custom: #2b21b0;
$custom-light: #7c61c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b21b0",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 244.196,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38385,
    "c": 0.21047,
    "h": 273.3
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B21B0

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

Preview Lab → · Contrast checker → · Palette generator →

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