#28207A#28207A

#28207A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.145 H 278.3°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#28207A
RGBrgb(40, 32, 122)
HSLhsl(245, 58%, 30%)
HSVhsv(245, 74%, 48%)
CMYKcmyk(67.2%, 73.8%, 0%, 52.2%)
CIE-LABlab(19.59, 32.71, -49.82)
CIE-LCHlch(19.59, 59.60, 303.29°)
OKLaboklab(32.09% 0.021 -0.1438)
OKLCHoklch(32.09% 0.145 278.3)
XYZxyz(4.9033, 2.8889, 18.7078)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28207A #727A20
analogous
#20457A #28207A #55207A
triadic
#28207A #7A2820 #207A28
tetradic
#28207A #7A2045 #727A20 #207A55
square
#28207A #7A2045 #727A20 #207A55
split-complementary
#28207A #7A5520 #457A20
monochromatic
#080719 #18134A #28207A #382DAA #5246CE

Accessibility & contrast

On white

13.31
#28207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28207A
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28207A#FFFFFF#000000##FFFFFF
##28207A1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28207a;
/* rgb */ color: rgb(40, 32, 122);
/* oklch */ color: oklch(32.1% 0.145 278.3);
Tailwind
colors: {
  custom: {
    50: '#6e5da1',
    500: '#28207a',
    950: '#000000',
  },
}
SCSS
$custom: #28207a;
$custom-light: #6e5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#28207a",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 245.333,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32086,
    "c": 0.14533,
    "h": 278.3
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#28207A
secondary
#A4AD49
accent
#E246D4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28207A

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

Preview Lab → · Contrast checker → · Palette generator →

#28207A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva