#28188E#28188E

#28188E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.178 H 276.6°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#28188E
RGBrgb(40, 24, 142)
HSLhsl(248, 71%, 33%)
HSVhsv(248, 83%, 56%)
CMYKcmyk(71.8%, 83.1%, 0%, 44.3%)
CIE-LABlab(20.27, 43.66, -61.31)
CIE-LCHlch(20.27, 75.27, 305.45°)
OKLaboklab(33.22% 0.0205 -0.1772)
OKLCHoklch(33.22% 0.178 276.6)
XYZxyz(6.0826, 3.0568, 25.8554)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28188E #7E8E18
analogous
#18438E #28188E #63188E
triadic
#28188E #8E2818 #188E28
tetradic
#28188E #8E1843 #7E8E18 #188E63
square
#28188E #8E1843 #7E8E18 #188E63
split-complementary
#28188E #8E6318 #438E18
monochromatic
#0B0625 #190F5A #28188E #3721C2 #5741DF

Accessibility & contrast

On white

13.03
#28188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28188E
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28188E#FFFFFF#000000##FFFFFF
##28188E1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28188e;
/* rgb */ color: rgb(40, 24, 142);
/* oklch */ color: oklch(33.2% 0.178 276.6);
Tailwind
colors: {
  custom: {
    50: '#7359b0',
    500: '#28188e',
    950: '#000000',
  },
}
SCSS
$custom: #28188e;
$custom-light: #7359b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28188e",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 248.136,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.17838,
    "h": 276.6
  },
  "luminance": 0.03057
}

Semantic roles & 50–950 ramp

primary
#28188E
secondary
#AFC042
accent
#EE3AD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #28188E

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

Preview Lab → · Contrast checker → · Palette generator →

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