#2828AA#2828AA

#2828AA is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.198 H 272.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2828AA
RGBrgb(40, 40, 170)
HSLhsl(240, 62%, 41%)
HSVhsv(240, 76%, 67%)
CMYKcmyk(76.5%, 76.5%, 0%, 33.3%)
CIE-LABlab(26.36, 44.35, -68.38)
CIE-LCHlch(26.36, 81.50, 302.96°)
OKLaboklab(38.42% 0.0072 -0.1979)
OKLCHoklch(38.42% 0.198 272.1)
XYZxyz(8.8871, 4.8700, 38.4941)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828AA #AAAA28
analogous
#2869AA #2828AA #6928AA
triadic
#2828AA #AA2828 #28AA28
tetradic
#2828AA #AA2869 #AAAA28 #28AA69
square
#2828AA #AA2869 #AAAA28 #28AA69
split-complementary
#2828AA #AA6928 #69AA28
monochromatic
#111147 #1C1C78 #2828AA #3E3ED2 #6F6FDD

Accessibility & contrast

On white

10.64
#2828AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2828AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2828AA#FFFFFF#000000##FFFFFF
##2828AA1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2828aa;
/* rgb */ color: rgb(40, 40, 170);
/* oklch */ color: oklch(38.4% 0.198 272.1);
Tailwind
colors: {
  custom: {
    50: '#7964c5',
    500: '#2828aa',
    950: '#000000',
  },
}
SCSS
$custom: #2828aa;
$custom-light: #7964c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2828aa",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 240,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38415,
    "c": 0.19807,
    "h": 272.1
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2828AA

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

Preview Lab → · Contrast checker → · Palette generator →

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