#28207C#28207C

#28207C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.148 H 278.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#28207C
RGBrgb(40, 32, 124)
HSLhsl(245, 59%, 31%)
HSVhsv(245, 74%, 49%)
CMYKcmyk(67.7%, 74.2%, 0%, 51.4%)
CIE-LABlab(19.80, 33.40, -50.76)
CIE-LCHlch(19.80, 60.76, 303.35°)
OKLaboklab(32.29% 0.0206 -0.1465)
OKLCHoklch(32.29% 0.148 278)
XYZxyz(5.0285, 2.9390, 19.3672)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28207C #747C20
analogous
#20467C #28207C #56207C
triadic
#28207C #7C2820 #207C28
tetradic
#28207C #7C2046 #747C20 #207C56
square
#28207C #7C2046 #747C20 #207C56
split-complementary
#28207C #7C5620 #467C20
monochromatic
#09071B #18134B #28207C #382DAD #5347CF

Accessibility & contrast

On white

13.23
#28207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28207C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28207C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28207C#FFFFFF#000000##FFFFFF
##28207C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28207c;
/* rgb */ color: rgb(40, 32, 124);
/* oklch */ color: oklch(32.3% 0.148 278.0);
Tailwind
colors: {
  custom: {
    50: '#6e5da3',
    500: '#28207c',
    950: '#000000',
  },
}
SCSS
$custom: #28207c;
$custom-light: #6e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#28207c",
  "rgb": {
    "r": 40,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 245.217,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32294,
    "c": 0.14799,
    "h": 278
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#28207C
secondary
#A6AF49
accent
#E246D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28207C

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

Preview Lab → · Contrast checker → · Palette generator →

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