#28217E#28217E

#28217E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.149 H 277.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#28217E
RGBrgb(40, 33, 126)
HSLhsl(245, 58%, 31%)
HSVhsv(245, 74%, 49%)
CMYKcmyk(68.3%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.22, 33.48, -51.33)
CIE-LCHlch(20.22, 61.29, 303.12°)
OKLaboklab(32.66% 0.0195 -0.1482)
OKLCHoklch(32.66% 0.15 277.5)
XYZxyz(5.1836, 3.0447, 20.0491)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28217E #777E21
analogous
#21487E #28217E #56217E
triadic
#28217E #7E2821 #217E28
tetradic
#28217E #7E2148 #777E21 #217E56
square
#28217E #7E2148 #777E21 #217E56
split-complementary
#28217E #7E5621 #487E21
monochromatic
#09081D #19144E #28217E #372EAE #544AD0

Accessibility & contrast

On white

13.05
#28217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#28217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28217E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28217E#FFFFFF#000000##FFFFFF
##28217E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28217e;
/* rgb */ color: rgb(40, 33, 126);
/* oklch */ color: oklch(32.7% 0.149 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f5da4',
    500: '#28217e',
    950: '#000000',
  },
}
SCSS
$custom: #28217e;
$custom-light: #6f5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#28217e",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 244.516,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32659,
    "c": 0.1495,
    "h": 277.5
  },
  "luminance": 0.03045
}

Semantic roles & 50–950 ramp

primary
#28217E
secondary
#A9B14A
accent
#E246D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28217E

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

Preview Lab → · Contrast checker → · Palette generator →

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