#2828BA#2828BA

#2828BA is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.2% C 0.217 H 271.1°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2828BA
RGBrgb(40, 40, 186)
HSLhsl(240, 65%, 44%)
HSVhsv(240, 78%, 73%)
CMYKcmyk(78.5%, 78.5%, 0%, 27.1%)
CIE-LABlab(28.15, 49.57, -74.99)
CIE-LCHlch(28.15, 89.89, 303.47°)
OKLaboklab(40.2% 0.0041 -0.2171)
OKLCHoklch(40.2% 0.217 271.1)
XYZxyz(10.4938, 5.5127, 46.9559)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828BA #BABA28
analogous
#2871BA #2828BA #7128BA
triadic
#2828BA #BA2828 #28BA28
tetradic
#2828BA #BA2871 #BABA28 #28BA71
square
#2828BA #BA2871 #BABA28 #28BA71
split-complementary
#2828BA #BA7128 #71BA28
monochromatic
#121255 #1D1D88 #2828BA #4848D8 #7A7AE2

Accessibility & contrast

On white

9.99
#2828BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2828BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828BA
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828BA#FFFFFF#000000##FFFFFF
##2828BA1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABE
Deuteranopia (green-blind)
#003BB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2828ba;
/* rgb */ color: rgb(40, 40, 186);
/* oklch */ color: oklch(40.2% 0.217 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c65d0',
    500: '#2828ba',
    950: '#000000',
  },
}
SCSS
$custom: #2828ba;
$custom-light: #7c65d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2828ba",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 240,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40195,
    "c": 0.21714,
    "h": 271.1
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#2828BA
secondary
#CACA73
accent
#E840E8
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2828BA

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

Preview Lab → · Contrast checker → · Palette generator →

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