#28228F#28228F

#28228F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.170 H 275.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#28228F
RGBrgb(40, 34, 143)
HSLhsl(243, 62%, 35%)
HSVhsv(243, 76%, 56%)
CMYKcmyk(72%, 76.2%, 0%, 43.9%)
CIE-LABlab(22.22, 38.70, -58.71)
CIE-LCHlch(22.22, 70.31, 303.39°)
OKLaboklab(34.62% 0.0155 -0.1697)
OKLCHoklch(34.62% 0.17 275.2)
XYZxyz(6.4034, 3.5777, 26.3344)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28228F #898F22
analogous
#22528F #28228F #5F228F
triadic
#28228F #8F2822 #228F28
tetradic
#28228F #8F2252 #898F22 #228F5F
square
#28228F #8F2252 #898F22 #228F5F
split-complementary
#28228F #8F5F22 #528F22
monochromatic
#0C0A2C #1A165E #28228F #362EC0 #5C55D7

Accessibility & contrast

On white

12.24
#28228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28228F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28228F#FFFFFF#000000##FFFFFF
##28228F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28228f;
/* rgb */ color: rgb(40, 34, 143);
/* oklch */ color: oklch(34.6% 0.170 275.2);
Tailwind
colors: {
  custom: {
    50: '#735fb1',
    500: '#28228f',
    950: '#000000',
  },
}
SCSS
$custom: #28228f;
$custom-light: #735fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#28228f",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 243.303,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34618,
    "c": 0.17044,
    "h": 275.2
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#28228F
secondary
#B5BA52
accent
#E543DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #28228F

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

Preview Lab → · Contrast checker → · Palette generator →

#28228F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva