#2828B2#2828B2

#2828B2 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.208 H 271.6°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2828B2
RGBrgb(40, 40, 178)
HSLhsl(240, 63%, 43%)
HSVhsv(240, 78%, 70%)
CMYKcmyk(77.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(27.25, 46.98, -71.72)
CIE-LCHlch(27.25, 85.74, 303.23°)
OKLaboklab(39.3% 0.0056 -0.2076)
OKLCHoklch(39.3% 0.208 271.6)
XYZxyz(9.6670, 5.1820, 42.6016)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828B2 #B2B228
analogous
#286DB2 #2828B2 #6D28B2
triadic
#2828B2 #B22828 #28B228
tetradic
#2828B2 #B2286D #B2B228 #28B26D
square
#2828B2 #B2286D #B2B228 #28B26D
split-complementary
#2828B2 #B26D28 #6DB228
monochromatic
#12124E #1D1D80 #2828B2 #4343D5 #7575E0

Accessibility & contrast

On white

10.31
#2828B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2828B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828B2
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828B2#FFFFFF#000000##FFFFFF
##2828B21.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2828b2;
/* rgb */ color: rgb(40, 40, 178);
/* oklch */ color: oklch(39.3% 0.208 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a64ca',
    500: '#2828b2',
    950: '#000000',
  },
}
SCSS
$custom: #2828b2;
$custom-light: #7a64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2828b2",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39299,
    "c": 0.2077,
    "h": 271.6
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#2828B2
secondary
#C7C76F
accent
#E641E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2828B2

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

Preview Lab → · Contrast checker → · Palette generator →

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