#2828A2#2828A2

#2828A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.188 H 272.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2828A2
RGBrgb(40, 40, 162)
HSLhsl(240, 60%, 40%)
HSVhsv(240, 75%, 64%)
CMYKcmyk(75.3%, 75.3%, 0%, 36.5%)
CIE-LABlab(25.49, 41.67, -64.98)
CIE-LCHlch(25.49, 77.19, 302.67°)
OKLaboklab(37.54% 0.0087 -0.188)
OKLCHoklch(37.54% 0.188 272.6)
XYZxyz(8.1533, 4.5765, 34.6291)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828A2 #A2A228
analogous
#2865A2 #2828A2 #6528A2
triadic
#2828A2 #A22828 #28A228
tetradic
#2828A2 #A22865 #A2A228 #28A265
square
#2828A2 #A22865 #A2A228 #28A265
split-complementary
#2828A2 #A26528 #65A228
monochromatic
#101040 #1C1C71 #2828A2 #3939CE #6A6ADA

Accessibility & contrast

On white

10.96
#2828A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2828A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2828A2#FFFFFF#000000##FFFFFF
##2828A21.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2828a2;
/* rgb */ color: rgb(40, 40, 162);
/* oklch */ color: oklch(37.5% 0.188 272.6);
Tailwind
colors: {
  custom: {
    50: '#7764bf',
    500: '#2828a2',
    950: '#000000',
  },
}
SCSS
$custom: #2828a2;
$custom-light: #7764bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2828a2",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 240,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37543,
    "c": 0.18825,
    "h": 272.6
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#2828A2
secondary
#C1C165
accent
#E444E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2828A2

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

Preview Lab → · Contrast checker → · Palette generator →

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