#2828C4#2828C4

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

Color values

HEX#2828C4
RGBrgb(40, 40, 196)
HSLhsl(240, 66%, 46%)
HSVhsv(240, 80%, 77%)
CMYKcmyk(79.6%, 79.6%, 0%, 23.1%)
CIE-LABlab(29.29, 52.74, -78.99)
CIE-LCHlch(29.29, 94.98, 303.73°)
OKLaboklab(41.33% 0.0021 -0.2287)
OKLCHoklch(41.33% 0.229 270.5)
XYZxyz(11.5943, 5.9529, 52.7518)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828C4 #C4C428
analogous
#2876C4 #2828C4 #7628C4
triadic
#2828C4 #C42828 #28C428
tetradic
#2828C4 #C42876 #C4C428 #28C476
square
#2828C4 #C42876 #C4C428 #28C476
split-complementary
#2828C4 #C47628 #76C428
monochromatic
#13135E #1E1E91 #2828C4 #4E4EDB #8181E5

Accessibility & contrast

On white

9.59
#2828C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2828C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828C4
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828C4#FFFFFF#000000##FFFFFF
##2828C41.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC8
Deuteranopia (green-blind)
#003DC1
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2828c4;
/* rgb */ color: rgb(40, 40, 196);
/* oklch */ color: oklch(41.3% 0.229 270.5);
Tailwind
colors: {
  custom: {
    50: '#7f66d7',
    500: '#2828c4',
    950: '#000000',
  },
}
SCSS
$custom: #2828c4;
$custom-light: #7f66d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2828c4",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 240,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41329,
    "c": 0.22871,
    "h": 270.5
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2828C4

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

Preview Lab → · Contrast checker → · Palette generator →

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