#2821B3#2821B3

#2821B3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.6% C 0.215 H 272.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2821B3
RGBrgb(40, 33, 179)
HSLhsl(243, 69%, 42%)
HSVhsv(243, 82%, 70%)
CMYKcmyk(77.7%, 81.6%, 0%, 29.8%)
CIE-LABlab(26.14, 50.85, -74.16)
CIE-LCHlch(26.14, 89.92, 304.44°)
OKLaboklab(38.56% 0.0076 -0.2146)
OKLCHoklch(38.56% 0.215 272)
XYZxyz(9.5529, 4.7925, 43.0607)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2821B3 #ACB321
analogous
#2163B3 #2821B3 #7121B3
triadic
#2821B3 #B32821 #21B328
tetradic
#2821B3 #B32163 #ACB321 #21B371
square
#2821B3 #B32163 #ACB321 #21B371
split-complementary
#2821B3 #B37121 #63B321
monochromatic
#110E4C #1C177F #2821B3 #3F37DA #716BE4

Accessibility & contrast

On white

10.72
#2821B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2821B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2821B3
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2821B3#FFFFFF#000000##FFFFFF
##2821B31.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.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: #2821b3;
/* rgb */ color: rgb(40, 33, 179);
/* oklch */ color: oklch(38.6% 0.215 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b61cb',
    500: '#2821b3',
    950: '#000000',
  },
}
SCSS
$custom: #2821b3;
$custom-light: #7b61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2821b3",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 242.877,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38556,
    "c": 0.21472,
    "h": 272
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#2821B3
secondary
#C5CA66
accent
#EC3CE3
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2821B3

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

Preview Lab → · Contrast checker → · Palette generator →

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