#2820B3#2820B3

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

Color values

HEX#2820B3
RGBrgb(40, 32, 179)
HSLhsl(243, 70%, 41%)
HSVhsv(243, 82%, 70%)
CMYKcmyk(77.7%, 82.1%, 0%, 29.8%)
CIE-LABlab(25.97, 51.32, -74.42)
CIE-LCHlch(25.97, 90.41, 304.59°)
OKLaboklab(38.44% 0.0079 -0.2153)
OKLCHoklch(38.44% 0.215 272.1)
XYZxyz(9.5255, 4.7378, 43.0515)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2820B3 #ABB320
analogous
#2062B3 #2820B3 #7220B3
triadic
#2820B3 #B32820 #20B328
tetradic
#2820B3 #B32062 #ABB320 #20B372
square
#2820B3 #B32062 #ABB320 #20B372
split-complementary
#2820B3 #B37220 #62B320
monochromatic
#110D4B #1C177F #2820B3 #3E35DB #7069E4

Accessibility & contrast

On white

10.78
#2820B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2820B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2820B3
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2820B3#FFFFFF#000000##FFFFFF
##2820B31.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)
#0044B7
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2820b3;
/* rgb */ color: rgb(40, 32, 179);
/* oklch */ color: oklch(38.4% 0.215 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b60cb',
    500: '#2820b3',
    950: '#000000',
  },
}
SCSS
$custom: #2820b3;
$custom-light: #7b60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2820b3",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 243.265,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.21549,
    "h": 272.1
  },
  "luminance": 0.04739
}

Semantic roles & 50–950 ramp

primary
#2820B3
secondary
#C4CA65
accent
#EC3BE3
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2820B3

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

Preview Lab → · Contrast checker → · Palette generator →

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