#2828A6#2828A6

#2828A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.193 H 272.4°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2828A6
RGBrgb(40, 40, 166)
HSLhsl(240, 61%, 40%)
HSVhsv(240, 76%, 65%)
CMYKcmyk(75.9%, 75.9%, 0%, 34.9%)
CIE-LABlab(25.92, 43.01, -66.69)
CIE-LCHlch(25.92, 79.36, 302.82°)
OKLaboklab(37.98% 0.008 -0.193)
OKLCHoklch(37.98% 0.193 272.4)
XYZxyz(8.5145, 4.7210, 36.5315)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828A6 #A6A628
analogous
#2867A6 #2828A6 #6728A6
triadic
#2828A6 #A62828 #28A628
tetradic
#2828A6 #A62867 #A6A628 #28A667
square
#2828A6 #A62867 #A6A628 #28A667
split-complementary
#2828A6 #A66728 #67A628
monochromatic
#101043 #1C1C75 #2828A6 #3B3BD0 #6D6DDC

Accessibility & contrast

On white

10.80
#2828A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2828A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2828A6#FFFFFF#000000##FFFFFF
##2828A61.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2828a6;
/* rgb */ color: rgb(40, 40, 166);
/* oklch */ color: oklch(38.0% 0.193 272.4);
Tailwind
colors: {
  custom: {
    50: '#7864c2',
    500: '#2828a6',
    950: '#000000',
  },
}
SCSS
$custom: #2828a6;
$custom-light: #7864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2828a6",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37977,
    "c": 0.19318,
    "h": 272.4
  },
  "luminance": 0.04722
}

Semantic roles & 50–950 ramp

primary
#2828A6
secondary
#C2C267
accent
#E444E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2828A6

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

Preview Lab → · Contrast checker → · Palette generator →

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