#2828CC#2828CC

#2828CC is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.2% C 0.238 H 270.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2828CC
RGBrgb(40, 40, 204)
HSLhsl(240, 67%, 48%)
HSVhsv(240, 80%, 80%)
CMYKcmyk(80.4%, 80.4%, 0%, 20%)
CIE-LABlab(30.22, 55.23, -82.13)
CIE-LCHlch(30.22, 98.97, 303.92°)
OKLaboklab(42.25% 0.0005 -0.2378)
OKLCHoklch(42.25% 0.238 270.1)
XYZxyz(12.5292, 6.3269, 57.6759)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828CC #CCCC28
analogous
#287ACC #2828CC #7A28CC
triadic
#2828CC #CC2828 #28CC28
tetradic
#2828CC #CC287A #CCCC28 #28CC7A
square
#2828CC #CC287A #CCCC28 #28CC7A
split-complementary
#2828CC #CC7A28 #7ACC28
monochromatic
#141466 #1E1E99 #2828CC #5454DD #8787E7

Accessibility & contrast

On white

9.27
#2828CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2828CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828CC
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828CC#FFFFFF#000000##FFFFFF
##2828CC1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FD0
Deuteranopia (green-blind)
#003EC9
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2828cc;
/* rgb */ color: rgb(40, 40, 204);
/* oklch */ color: oklch(42.2% 0.238 270.1);
Tailwind
colors: {
  custom: {
    50: '#8166dd',
    500: '#2828cc',
    950: '#000000',
  },
}
SCSS
$custom: #2828cc;
$custom-light: #8166dd;
$custom-dark: #000000;
JSON
{
  "hex": "#2828cc",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 67.213,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42245,
    "c": 0.2378,
    "h": 270.1
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#2828CC
secondary
#D1D17F
accent
#EA3EEA
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #2828CC

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

Preview Lab → · Contrast checker → · Palette generator →

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