#28188C#28188C

#28188C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.0% C 0.176 H 276.9°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#28188C
RGBrgb(40, 24, 140)
HSLhsl(248, 71%, 32%)
HSVhsv(248, 83%, 55%)
CMYKcmyk(71.4%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.03, 43.04, -60.46)
CIE-LCHlch(20.03, 74.21, 305.44°)
OKLaboklab(32.98% 0.0211 -0.1747)
OKLCHoklch(32.98% 0.176 276.9)
XYZxyz(5.9338, 2.9973, 25.0717)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28188C #7C8C18
analogous
#18428C #28188C #62188C
triadic
#28188C #8C2818 #188C28
tetradic
#28188C #8C1842 #7C8C18 #188C62
square
#28188C #8C1842 #7C8C18 #188C62
split-complementary
#28188C #8C6218 #428C18
monochromatic
#0A0624 #190F58 #28188C #3721C0 #5640DE

Accessibility & contrast

On white

13.13
#28188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#28188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28188C
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28188C#FFFFFF#000000##FFFFFF
##28188C1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28188c;
/* rgb */ color: rgb(40, 24, 140);
/* oklch */ color: oklch(33.0% 0.176 276.9);
Tailwind
colors: {
  custom: {
    50: '#7359af',
    500: '#28188c',
    950: '#000000',
  },
}
SCSS
$custom: #28188c;
$custom-light: #7359af;
$custom-dark: #000000;
JSON
{
  "hex": "#28188c",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 248.276,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.17599,
    "h": 276.9
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#28188C
secondary
#ADBF41
accent
#ED3AD5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #28188C

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

Preview Lab → · Contrast checker → · Palette generator →

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