#2828AF#2828AF

#2828AF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.0% C 0.204 H 271.7°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2828AF
RGBrgb(40, 40, 175)
HSLhsl(240, 63%, 42%)
HSVhsv(240, 77%, 69%)
CMYKcmyk(77.1%, 77.1%, 0%, 31.4%)
CIE-LABlab(26.91, 46.00, -70.47)
CIE-LCHlch(26.91, 84.16, 303.13°)
OKLaboklab(38.97% 0.0062 -0.204)
OKLCHoklch(38.97% 0.204 271.7)
XYZxyz(9.3691, 5.0628, 41.0326)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2828AF #AFAF28
analogous
#286CAF #2828AF #6C28AF
triadic
#2828AF #AF2828 #28AF28
tetradic
#2828AF #AF286C #AFAF28 #28AF6C
square
#2828AF #AF286C #AFAF28 #28AF6C
split-complementary
#2828AF #AF6C28 #6CAF28
monochromatic
#11114B #1D1D7D #2828AF #4141D4 #7373DF

Accessibility & contrast

On white

10.43
#2828AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2828AF
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2828AF#FFFFFF#000000##FFFFFF
##2828AF1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2828af;
/* rgb */ color: rgb(40, 40, 175);
/* oklch */ color: oklch(39.0% 0.204 271.7);
Tailwind
colors: {
  custom: {
    50: '#7a64c8',
    500: '#2828af',
    950: '#000000',
  },
}
SCSS
$custom: #2828af;
$custom-light: #7a64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2828af",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 240,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.38966,
    "c": 0.20412,
    "h": 271.7
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2828AF

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

Preview Lab → · Contrast checker → · Palette generator →

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