#28217B#28217B

#28217B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.145 H 277.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#28217B
RGBrgb(40, 33, 123)
HSLhsl(245, 58%, 31%)
HSVhsv(245, 73%, 48%)
CMYKcmyk(67.5%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.92, 32.44, -49.92)
CIE-LCHlch(19.92, 59.54, 303.02°)
OKLaboklab(32.35% 0.0201 -0.1441)
OKLCHoklch(32.35% 0.146 277.9)
XYZxyz(4.9929, 2.9685, 19.0449)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28217B #747B21
analogous
#21477B #28217B #55217B
triadic
#28217B #7B2821 #217B28
tetradic
#28217B #7B2147 #747B21 #217B55
square
#28217B #7B2147 #747B21 #217B55
split-complementary
#28217B #7B5521 #477B21
monochromatic
#09071A #18144B #28217B #382EAB #5348CE

Accessibility & contrast

On white

13.18
#28217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28217B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28217B#FFFFFF#000000##FFFFFF
##28217B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28217b;
/* rgb */ color: rgb(40, 33, 123);
/* oklch */ color: oklch(32.3% 0.145 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e5da2',
    500: '#28217b',
    950: '#000000',
  },
}
SCSS
$custom: #28217b;
$custom-light: #6e5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#28217b",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 244.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32348,
    "c": 0.1455,
    "h": 277.9
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28217B

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

Preview Lab → · Contrast checker → · Palette generator →

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