#2821AF#2821AF

#2821AF is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.210 H 272.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2821AF
RGBrgb(40, 33, 175)
HSLhsl(243, 68%, 41%)
HSVhsv(243, 81%, 69%)
CMYKcmyk(77.1%, 81.1%, 0%, 31.4%)
CIE-LABlab(25.66, 49.61, -72.55)
CIE-LCHlch(25.66, 87.89, 304.37°)
OKLaboklab(38.09% 0.0086 -0.2099)
OKLCHoklch(38.09% 0.21 272.3)
XYZxyz(9.1542, 4.6330, 40.9609)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2821AF #A8AF21
analogous
#2161AF #2821AF #6F21AF
triadic
#2821AF #AF2821 #21AF28
tetradic
#2821AF #AF2161 #A8AF21 #21AF6F
square
#2821AF #AF2161 #A8AF21 #21AF6F
split-complementary
#2821AF #AF6F21 #61AF21
monochromatic
#100E48 #1C177C #2821AF #3D34D9 #6E68E3

Accessibility & contrast

On white

10.90
#2821AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2821AF
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2821AF#FFFFFF#000000##FFFFFF
##2821AF1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2821af;
/* rgb */ color: rgb(40, 33, 175);
/* oklch */ color: oklch(38.1% 0.210 272.3);
Tailwind
colors: {
  custom: {
    50: '#7a60c8',
    500: '#2821af',
    950: '#000000',
  },
}
SCSS
$custom: #2821af;
$custom-light: #7a60c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2821af",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 242.958,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38091,
    "c": 0.2101,
    "h": 272.3
  },
  "luminance": 0.04634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2821AF

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

Preview Lab → · Contrast checker → · Palette generator →

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