#2828C5#2828C5

#2828C5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.4% C 0.230 H 270.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2828C5
RGBrgb(40, 40, 197)
HSLhsl(240, 66%, 46%)
HSVhsv(240, 80%, 77%)
CMYKcmyk(79.7%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.41, 53.06, -79.38)
CIE-LCHlch(29.41, 95.48, 303.76°)
OKLaboklab(41.44% 0.0019 -0.2298)
OKLCHoklch(41.44% 0.23 270.5)
XYZxyz(11.7085, 5.9986, 53.3533)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828C5 #C5C528
analogous
#2877C5 #2828C5 #7728C5
triadic
#2828C5 #C52828 #28C528
tetradic
#2828C5 #C52877 #C5C528 #28C577
square
#2828C5 #C52877 #C5C528 #28C577
split-complementary
#2828C5 #C57728 #77C528
monochromatic
#13135F #1E1E92 #2828C5 #4F4FDB #8282E6

Accessibility & contrast

On white

9.55
#2828C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2828C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828C5
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828C5#FFFFFF#000000##FFFFFF
##2828C51.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC9
Deuteranopia (green-blind)
#003DC2
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2828c5;
/* rgb */ color: rgb(40, 40, 197);
/* oklch */ color: oklch(41.4% 0.230 270.5);
Tailwind
colors: {
  custom: {
    50: '#7f66d8',
    500: '#2828c5',
    950: '#000000',
  },
}
SCSS
$custom: #2828c5;
$custom-light: #7f66d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2828c5",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 240,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41443,
    "c": 0.22986,
    "h": 270.5
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#2828C5
secondary
#CECE7A
accent
#E93FE9
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2828C5

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

Preview Lab → · Contrast checker → · Palette generator →

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