#2828AC#2828AC

#2828AC is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.6% C 0.201 H 271.9°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2828AC
RGBrgb(40, 40, 172)
HSLhsl(240, 62%, 42%)
HSVhsv(240, 77%, 67%)
CMYKcmyk(76.7%, 76.7%, 0%, 32.5%)
CIE-LABlab(26.58, 45.01, -69.22)
CIE-LCHlch(26.58, 82.57, 303.03°)
OKLaboklab(38.64% 0.0068 -0.2004)
OKLCHoklch(38.64% 0.201 271.9)
XYZxyz(9.0777, 4.9463, 39.4980)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828AC #ACAC28
analogous
#286AAC #2828AC #6A28AC
triadic
#2828AC #AC2828 #28AC28
tetradic
#2828AC #AC286A #ACAC28 #28AC6A
square
#2828AC #AC286A #ACAC28 #28AC6A
split-complementary
#2828AC #AC6A28 #6AAC28
monochromatic
#111149 #1C1C7A #2828AC #3F3FD2 #7171DE

Accessibility & contrast

On white

10.56
#2828AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2828AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828AC
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828AC#FFFFFF#000000##FFFFFF
##2828AC1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#0038AA
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2828ac;
/* rgb */ color: rgb(40, 40, 172);
/* oklch */ color: oklch(38.6% 0.201 271.9);
Tailwind
colors: {
  custom: {
    50: '#7964c6',
    500: '#2828ac',
    950: '#000000',
  },
}
SCSS
$custom: #2828ac;
$custom-light: #7964c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2828ac",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38635,
    "c": 0.2005,
    "h": 271.9
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#2828AC
secondary
#C5C56B
accent
#E542E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2828AC

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

Preview Lab → · Contrast checker → · Palette generator →

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