#28207B#28207B

#28207B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.147 H 278.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#28207B
RGBrgb(40, 32, 123)
HSLhsl(245, 59%, 30%)
HSVhsv(245, 74%, 48%)
CMYKcmyk(67.5%, 74%, 0%, 51.8%)
CIE-LABlab(19.70, 33.06, -50.29)
CIE-LCHlch(19.70, 60.18, 303.32°)
OKLaboklab(32.19% 0.0208 -0.1452)
OKLCHoklch(32.19% 0.147 278.2)
XYZxyz(4.9656, 2.9138, 19.0358)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28207B #737B20
analogous
#20457B #28207B #56207B
triadic
#28207B #7B2820 #207B28
tetradic
#28207B #7B2045 #737B20 #207B56
square
#28207B #7B2045 #737B20 #207B56
split-complementary
#28207B #7B5620 #457B20
monochromatic
#08071A #18134A #28207B #382DAC #5246CF

Accessibility & contrast

On white

13.27
#28207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28207B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28207B#FFFFFF#000000##FFFFFF
##28207B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28207b;
/* rgb */ color: rgb(40, 32, 123);
/* oklch */ color: oklch(32.2% 0.147 278.2);
Tailwind
colors: {
  custom: {
    50: '#6e5da2',
    500: '#28207b',
    950: '#000000',
  },
}
SCSS
$custom: #28207b;
$custom-light: #6e5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#28207b",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 245.275,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3219,
    "c": 0.14666,
    "h": 278.2
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#28207B
secondary
#A5AE49
accent
#E246D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28207B

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

Preview Lab → · Contrast checker → · Palette generator →

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