#28188A#28188A

#28188A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.174 H 277.2°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#28188A
RGBrgb(40, 24, 138)
HSLhsl(248, 70%, 32%)
HSVhsv(248, 83%, 54%)
CMYKcmyk(71%, 82.6%, 0%, 45.9%)
CIE-LABlab(19.80, 42.41, -59.60)
CIE-LCHlch(19.80, 73.15, 305.44°)
OKLaboklab(32.75% 0.0217 -0.1722)
OKLCHoklch(32.75% 0.174 277.2)
XYZxyz(5.7877, 2.9388, 24.3021)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28188A #7A8A18
analogous
#18418A #28188A #61188A
triadic
#28188A #8A2818 #188A28
tetradic
#28188A #8A1841 #7A8A18 #188A61
square
#28188A #8A1841 #7A8A18 #188A61
split-complementary
#28188A #8A6118 #418A18
monochromatic
#0A0622 #190F56 #28188A #3721BE #553FDE

Accessibility & contrast

On white

13.23
#28188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#28188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28188A
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28188A#FFFFFF#000000##FFFFFF
##28188A1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002B88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28188a;
/* rgb */ color: rgb(40, 24, 138);
/* oklch */ color: oklch(32.8% 0.174 277.2);
Tailwind
colors: {
  custom: {
    50: '#7259ad',
    500: '#28188a',
    950: '#000000',
  },
}
SCSS
$custom: #28188a;
$custom-light: #7259ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28188a",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 248.421,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.17357,
    "h": 277.2
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#28188A
secondary
#ACBD40
accent
#ED3BD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #28188A

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

Preview Lab → · Contrast checker → · Palette generator →

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