#28227E#28227E

#28227E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.148 H 277.3°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#28227E
RGBrgb(40, 34, 126)
HSLhsl(244, 58%, 31%)
HSVhsv(244, 73%, 49%)
CMYKcmyk(68.3%, 73%, 0%, 50.6%)
CIE-LABlab(20.44, 32.87, -50.97)
CIE-LCHlch(20.44, 60.64, 302.82°)
OKLaboklab(32.82% 0.0188 -0.1471)
OKLCHoklch(32.82% 0.148 277.3)
XYZxyz(5.2118, 3.1011, 20.0585)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28227E #787E22
analogous
#224A7E #28227E #56227E
triadic
#28227E #7E2822 #227E28
tetradic
#28227E #7E224A #787E22 #227E56
square
#28227E #7E224A #787E22 #227E56
split-complementary
#28227E #7E5622 #4A7E22
monochromatic
#09081E #19154E #28227E #372FAE #544CCF

Accessibility & contrast

On white

12.96
#28227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#28227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28227E
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28227E#FFFFFF#000000##FFFFFF
##28227E1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.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: #28227e;
/* rgb */ color: rgb(40, 34, 126);
/* oklch */ color: oklch(32.8% 0.148 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ea4',
    500: '#28227e',
    950: '#000000',
  },
}
SCSS
$custom: #28227e;
$custom-light: #6e5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#28227e",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 243.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32817,
    "c": 0.14835,
    "h": 277.3
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#28227E
secondary
#AAB14B
accent
#E147D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28227E

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

Preview Lab → · Contrast checker → · Palette generator →

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