#2828AD#2828AD

#2828AD is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.7% C 0.202 H 271.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2828AD
RGBrgb(40, 40, 173)
HSLhsl(240, 62%, 42%)
HSVhsv(240, 77%, 68%)
CMYKcmyk(76.9%, 76.9%, 0%, 32.2%)
CIE-LABlab(26.69, 45.34, -69.64)
CIE-LCHlch(26.69, 83.10, 303.07°)
OKLaboklab(38.75% 0.0066 -0.2016)
OKLCHoklch(38.75% 0.202 271.9)
XYZxyz(9.1741, 4.9848, 40.0057)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828AD #ADAD28
analogous
#286BAD #2828AD #6B28AD
triadic
#2828AD #AD2828 #28AD28
tetradic
#2828AD #AD286B #ADAD28 #28AD6B
square
#2828AD #AD286B #ADAD28 #28AD6B
split-complementary
#2828AD #AD6B28 #6BAD28
monochromatic
#11114A #1D1D7B #2828AD #3F3FD3 #7171DE

Accessibility & contrast

On white

10.51
#2828AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2828AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828AD
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828AD#FFFFFF#000000##FFFFFF
##2828AD1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B1
Deuteranopia (green-blind)
#0038AB
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2828ad;
/* rgb */ color: rgb(40, 40, 173);
/* oklch */ color: oklch(38.7% 0.202 271.9);
Tailwind
colors: {
  custom: {
    50: '#7964c7',
    500: '#2828ad',
    950: '#000000',
  },
}
SCSS
$custom: #2828ad;
$custom-light: #7964c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2828ad",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 173
  },
  "hsl": {
    "h": 240,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.20171,
    "h": 271.9
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#2828AD
secondary
#C5C56C
accent
#E642E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2828AD

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

Preview Lab → · Contrast checker → · Palette generator →

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