#2828BD#2828BD

#2828BD is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.5% C 0.221 H 270.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2828BD
RGBrgb(40, 40, 189)
HSLhsl(240, 65%, 45%)
HSVhsv(240, 79%, 74%)
CMYKcmyk(78.8%, 78.8%, 0%, 25.9%)
CIE-LABlab(28.49, 50.53, -76.20)
CIE-LCHlch(28.49, 91.43, 303.55°)
OKLaboklab(40.53% 0.0035 -0.2206)
OKLCHoklch(40.53% 0.221 270.9)
XYZxyz(10.8161, 5.6416, 48.6531)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828BD #BDBD28
analogous
#2873BD #2828BD #7328BD
triadic
#2828BD #BD2828 #28BD28
tetradic
#2828BD #BD2873 #BDBD28 #28BD73
square
#2828BD #BD2873 #BDBD28 #28BD73
split-complementary
#2828BD #BD7328 #73BD28
monochromatic
#131358 #1D1D8A #2828BD #4A4AD9 #7C7CE3

Accessibility & contrast

On white

9.87
#2828BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2828BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828BD
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828BD#FFFFFF#000000##FFFFFF
##2828BD1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC1
Deuteranopia (green-blind)
#003BBA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2828bd;
/* rgb */ color: rgb(40, 40, 189);
/* oklch */ color: oklch(40.5% 0.221 270.9);
Tailwind
colors: {
  custom: {
    50: '#7d65d2',
    500: '#2828bd',
    950: '#000000',
  },
}
SCSS
$custom: #2828bd;
$custom-light: #7d65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2828bd",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 240,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.22064,
    "h": 270.9
  },
  "luminance": 0.05643
}

Semantic roles & 50–950 ramp

primary
#2828BD
secondary
#CBCB75
accent
#E840E8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2828BD

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

Preview Lab → · Contrast checker → · Palette generator →

#2828BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva