#2828AE#2828AE

#2828AE is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.9% C 0.203 H 271.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2828AE
RGBrgb(40, 40, 174)
HSLhsl(240, 63%, 42%)
HSVhsv(240, 77%, 68%)
CMYKcmyk(77%, 77%, 0%, 31.8%)
CIE-LABlab(26.80, 45.67, -70.06)
CIE-LCHlch(26.80, 83.63, 303.10°)
OKLaboklab(38.86% 0.0064 -0.2028)
OKLCHoklch(38.86% 0.203 271.8)
XYZxyz(9.2713, 5.0237, 40.5172)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828AE #AEAE28
analogous
#286BAE #2828AE #6B28AE
triadic
#2828AE #AE2828 #28AE28
tetradic
#2828AE #AE286B #AEAE28 #28AE6B
square
#2828AE #AE286B #AEAE28 #28AE6B
split-complementary
#2828AE #AE6B28 #6BAE28
monochromatic
#11114A #1D1D7C #2828AE #4040D3 #7272DF

Accessibility & contrast

On white

10.47
#2828AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2828AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2828AE#FFFFFF#000000##FFFFFF
##2828AE1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2828ae;
/* rgb */ color: rgb(40, 40, 174);
/* oklch */ color: oklch(38.9% 0.203 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a64c8',
    500: '#2828ae',
    950: '#000000',
  },
}
SCSS
$custom: #2828ae;
$custom-light: #7a64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2828ae",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 240,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.38856,
    "c": 0.20291,
    "h": 271.8
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#2828AE
secondary
#C6C66C
accent
#E642E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2828AE

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

Preview Lab → · Contrast checker → · Palette generator →

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