#28217C#28217C

#28217C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 277.8°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#28217C
RGBrgb(40, 33, 124)
HSLhsl(245, 58%, 31%)
HSVhsv(245, 73%, 49%)
CMYKcmyk(67.7%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.02, 32.79, -50.39)
CIE-LCHlch(20.02, 60.12, 303.05°)
OKLaboklab(32.45% 0.0199 -0.1455)
OKLCHoklch(32.45% 0.147 277.8)
XYZxyz(5.0558, 2.9936, 19.3763)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28217C #757C21
analogous
#21477C #28217C #55217C
triadic
#28217C #7C2821 #217C28
tetradic
#28217C #7C2147 #757C21 #217C55
square
#28217C #7C2147 #757C21 #217C55
split-complementary
#28217C #7C5521 #477C21
monochromatic
#09071B #18144C #28217C #382EAC #5349CF

Accessibility & contrast

On white

13.13
#28217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#28217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28217C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28217C#FFFFFF#000000##FFFFFF
##28217C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28217c;
/* rgb */ color: rgb(40, 33, 124);
/* oklch */ color: oklch(32.5% 0.147 277.8);
Tailwind
colors: {
  custom: {
    50: '#6e5da3',
    500: '#28217c',
    950: '#000000',
  },
}
SCSS
$custom: #28217c;
$custom-light: #6e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#28217c",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 244.615,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32451,
    "c": 0.14684,
    "h": 277.8
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#28217C
secondary
#A7AF4A
accent
#E147D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28217C

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

Preview Lab → · Contrast checker → · Palette generator →

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