#2B21B3#2B21B3

#2B21B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.7% C 0.214 H 273.0°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2B21B3
RGBrgb(43, 33, 179)
HSLhsl(244, 69%, 42%)
HSVhsv(244, 82%, 70%)
CMYKcmyk(76%, 81.6%, 0%, 29.8%)
CIE-LABlab(26.32, 51.05, -73.85)
CIE-LCHlch(26.32, 89.77, 304.65°)
OKLaboklab(38.73% 0.0113 -0.2136)
OKLCHoklch(38.73% 0.214 273)
XYZxyz(9.6741, 4.8550, 43.0663)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B21B3 #A9B321
analogous
#2160B3 #2B21B3 #7421B3
triadic
#2B21B3 #B32B21 #21B32B
tetradic
#2B21B3 #B32160 #A9B321 #21B374
square
#2B21B3 #B32160 #A9B321 #21B374
split-complementary
#2B21B3 #B37421 #60B321
monochromatic
#120E4C #1F177F #2B21B3 #4237DA #736BE4

Accessibility & contrast

On white

10.65
#2B21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B21B3
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B21B3#FFFFFF#000000##FFFFFF
##2B21B31.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b21b3;
/* rgb */ color: rgb(43, 33, 179);
/* oklch */ color: oklch(38.7% 0.214 273.0);
Tailwind
colors: {
  custom: {
    50: '#7c61cb',
    500: '#2b21b3',
    950: '#000000',
  },
}
SCSS
$custom: #2b21b3;
$custom-light: #7c61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b21b3",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 244.11,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.21394,
    "h": 273
  },
  "luminance": 0.04856
}

Semantic roles & 50–950 ramp

primary
#2B21B3
secondary
#C3CA66
accent
#EC3CE0
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2B21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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