#2821B0#2821B0

#2821B0 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.211 H 272.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2821B0
RGBrgb(40, 33, 176)
HSLhsl(243, 68%, 41%)
HSVhsv(243, 81%, 69%)
CMYKcmyk(77.3%, 81.3%, 0%, 31%)
CIE-LABlab(25.78, 49.92, -72.95)
CIE-LCHlch(25.78, 88.40, 304.39°)
OKLaboklab(38.21% 0.0083 -0.2111)
OKLCHoklch(38.21% 0.211 272.3)
XYZxyz(9.2528, 4.6724, 41.4801)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2821B0 #A9B021
analogous
#2161B0 #2821B0 #6F21B0
triadic
#2821B0 #B02821 #21B028
tetradic
#2821B0 #B02161 #A9B021 #21B06F
square
#2821B0 #B02161 #A9B021 #21B06F
split-complementary
#2821B0 #B06F21 #61B021
monochromatic
#110E49 #1C177C #2821B0 #3D35D9 #6F69E3

Accessibility & contrast

On white

10.85
#2821B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2821B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2821B0
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2821B0#FFFFFF#000000##FFFFFF
##2821B01.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2821b0;
/* rgb */ color: rgb(40, 33, 176);
/* oklch */ color: oklch(38.2% 0.211 272.3);
Tailwind
colors: {
  custom: {
    50: '#7b60c9',
    500: '#2821b0',
    950: '#000000',
  },
}
SCSS
$custom: #2821b0;
$custom-light: #7b60c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2821b0",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 242.937,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38207,
    "c": 0.21126,
    "h": 272.3
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#2821B0
secondary
#C4C864
accent
#EB3DE3
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2821B0

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

Preview Lab → · Contrast checker → · Palette generator →

#2821B0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva