#2828A7#2828A7

#2828A7 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.194 H 272.3°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2828A7
RGBrgb(40, 40, 167)
HSLhsl(240, 61%, 41%)
HSVhsv(240, 76%, 65%)
CMYKcmyk(76%, 76%, 0%, 34.5%)
CIE-LABlab(26.03, 43.35, -67.11)
CIE-LCHlch(26.03, 79.90, 302.86°)
OKLaboklab(38.09% 0.0078 -0.1943)
OKLCHoklch(38.09% 0.194 272.3)
XYZxyz(8.6066, 4.7578, 37.0165)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828A7 #A7A728
analogous
#2867A7 #2828A7 #6728A7
triadic
#2828A7 #A72828 #28A728
tetradic
#2828A7 #A72867 #A7A728 #28A767
square
#2828A7 #A72867 #A7A728 #28A767
split-complementary
#2828A7 #A76728 #67A728
monochromatic
#101044 #1C1C76 #2828A7 #3C3CD0 #6D6DDC

Accessibility & contrast

On white

10.76
#2828A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2828A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2828A7#FFFFFF#000000##FFFFFF
##2828A71.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2828a7;
/* rgb */ color: rgb(40, 40, 167);
/* oklch */ color: oklch(38.1% 0.194 272.3);
Tailwind
colors: {
  custom: {
    50: '#7864c2',
    500: '#2828a7',
    950: '#000000',
  },
}
SCSS
$custom: #2828a7;
$custom-light: #7864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2828a7",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 240,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38086,
    "c": 0.19442,
    "h": 272.3
  },
  "luminance": 0.04759
}

Semantic roles & 50–950 ramp

primary
#2828A7
secondary
#C3C368
accent
#E443E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2828A7

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

Preview Lab → · Contrast checker → · Palette generator →

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