#2828A8#2828A8

#2828A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.196 H 272.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2828A8
RGBrgb(40, 40, 168)
HSLhsl(240, 62%, 41%)
HSVhsv(240, 76%, 66%)
CMYKcmyk(76.2%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.14, 43.68, -67.54)
CIE-LCHlch(26.14, 80.43, 302.89°)
OKLaboklab(38.2% 0.0076 -0.1955)
OKLCHoklch(38.2% 0.196 272.2)
XYZxyz(8.6994, 4.7949, 37.5052)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828A8 #A8A828
analogous
#2868A8 #2828A8 #6828A8
triadic
#2828A8 #A82828 #28A828
tetradic
#2828A8 #A82868 #A8A828 #28A868
square
#2828A8 #A82868 #A8A828 #28A868
split-complementary
#2828A8 #A86828 #68A828
monochromatic
#101045 #1C1C77 #2828A8 #3D3DD1 #6E6EDC

Accessibility & contrast

On white

10.72
#2828A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2828A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2828A8#FFFFFF#000000##FFFFFF
##2828A81.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2828a8;
/* rgb */ color: rgb(40, 40, 168);
/* oklch */ color: oklch(38.2% 0.196 272.2);
Tailwind
colors: {
  custom: {
    50: '#7864c3',
    500: '#2828a8',
    950: '#000000',
  },
}
SCSS
$custom: #2828a8;
$custom-light: #7864c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2828a8",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 240,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38195,
    "c": 0.19564,
    "h": 272.2
  },
  "luminance": 0.04796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2828A8

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

Preview Lab → · Contrast checker → · Palette generator →

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