#2828A1#2828A1

#2828A1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.187 H 272.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2828A1
RGBrgb(40, 40, 161)
HSLhsl(240, 60%, 39%)
HSVhsv(240, 75%, 63%)
CMYKcmyk(75.2%, 75.2%, 0%, 36.9%)
CIE-LABlab(25.39, 41.33, -64.55)
CIE-LCHlch(25.39, 76.65, 302.63°)
OKLaboklab(37.44% 0.0089 -0.1868)
OKLCHoklch(37.44% 0.187 272.7)
XYZxyz(8.0647, 4.5411, 34.1628)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828A1 #A1A128
analogous
#2865A1 #2828A1 #6528A1
triadic
#2828A1 #A12828 #28A128
tetradic
#2828A1 #A12865 #A1A128 #28A165
square
#2828A1 #A12865 #A1A128 #28A165
split-complementary
#2828A1 #A16528 #65A128
monochromatic
#10103F #1C1C70 #2828A1 #3939CE #6A6ADA

Accessibility & contrast

On white

11.00
#2828A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2828A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828A1
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828A1#FFFFFF#000000##FFFFFF
##2828A11.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2828a1;
/* rgb */ color: rgb(40, 40, 161);
/* oklch */ color: oklch(37.4% 0.187 272.7);
Tailwind
colors: {
  custom: {
    50: '#7664be',
    500: '#2828a1',
    950: '#000000',
  },
}
SCSS
$custom: #2828a1;
$custom-light: #7664be;
$custom-dark: #000000;
JSON
{
  "hex": "#2828a1",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 240,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.18701,
    "h": 272.7
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#2828A1
secondary
#C0C065
accent
#E344E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2828A1

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

Preview Lab → · Contrast checker → · Palette generator →

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