#28207E#28207E

#28207E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.151 H 277.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#28207E
RGBrgb(40, 32, 126)
HSLhsl(245, 59%, 31%)
HSVhsv(245, 75%, 49%)
CMYKcmyk(68.3%, 74.6%, 0%, 50.6%)
CIE-LABlab(20.00, 34.09, -51.69)
CIE-LCHlch(20.00, 61.92, 303.40°)
OKLaboklab(32.5% 0.0202 -0.1493)
OKLCHoklch(32.5% 0.151 277.7)
XYZxyz(5.1563, 2.9901, 20.0400)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28207E #767E20
analogous
#20477E #28207E #57207E
triadic
#28207E #7E2820 #207E28
tetradic
#28207E #7E2047 #767E20 #207E57
square
#28207E #7E2047 #767E20 #207E57
split-complementary
#28207E #7E5720 #477E20
monochromatic
#09071C #19144D #28207E #372CAF #5448D0

Accessibility & contrast

On white

13.14
#28207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#28207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28207E
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28207E#FFFFFF#000000##FFFFFF
##28207E1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28207e;
/* rgb */ color: rgb(40, 32, 126);
/* oklch */ color: oklch(32.5% 0.151 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f5da4',
    500: '#28207e',
    950: '#000000',
  },
}
SCSS
$custom: #28207e;
$custom-light: #6f5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#28207e",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 245.106,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.15062,
    "h": 277.7
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#28207E
secondary
#A8B149
accent
#E345D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28207E

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

Preview Lab → · Contrast checker → · Palette generator →

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