#2828AB#2828AB

#2828AB is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.199 H 272.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2828AB
RGBrgb(40, 40, 171)
HSLhsl(240, 62%, 41%)
HSVhsv(240, 77%, 67%)
CMYKcmyk(76.6%, 76.6%, 0%, 32.9%)
CIE-LABlab(26.47, 44.68, -68.80)
CIE-LCHlch(26.47, 82.04, 303.00°)
OKLaboklab(38.53% 0.007 -0.1992)
OKLCHoklch(38.53% 0.199 272)
XYZxyz(8.9821, 4.9080, 38.9941)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828AB #ABAB28
analogous
#286AAB #2828AB #6A28AB
triadic
#2828AB #AB2828 #28AB28
tetradic
#2828AB #AB286A #ABAB28 #28AB6A
square
#2828AB #AB286A #ABAB28 #28AB6A
split-complementary
#2828AB #AB6A28 #6AAB28
monochromatic
#111148 #1C1C79 #2828AB #3E3ED2 #7070DE

Accessibility & contrast

On white

10.60
#2828AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2828AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2828AB
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828AB#FFFFFF#000000##FFFFFF
##2828AB1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0038A9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2828ab;
/* rgb */ color: rgb(40, 40, 171);
/* oklch */ color: oklch(38.5% 0.199 272.0);
Tailwind
colors: {
  custom: {
    50: '#7964c5',
    500: '#2828ab',
    950: '#000000',
  },
}
SCSS
$custom: #2828ab;
$custom-light: #7964c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2828ab",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38525,
    "c": 0.19928,
    "h": 272
  },
  "luminance": 0.04909
}

Semantic roles & 50–950 ramp

primary
#2828AB
secondary
#C4C46A
accent
#E543E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2828AB

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

Preview Lab → · Contrast checker → · Palette generator →

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