#28187D#28187D

#28187D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.158 H 279.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#28187D
RGBrgb(40, 24, 125)
HSLhsl(250, 68%, 29%)
HSVhsv(250, 81%, 49%)
CMYKcmyk(68%, 80.8%, 0%, 51%)
CIE-LABlab(18.30, 38.28, -53.87)
CIE-LCHlch(18.30, 66.09, 305.40°)
OKLaboklab(31.27% 0.0256 -0.1555)
OKLCHoklch(31.27% 0.158 279.3)
XYZxyz(4.9022, 2.5847, 19.6386)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28187D #6D7D18
analogous
#183B7D #28187D #5B187D
triadic
#28187D #7D2818 #187D28
tetradic
#28187D #7D183B #6D7D18 #187D5B
square
#28187D #7D183B #6D7D18 #187D5B
split-complementary
#28187D #7D5B18 #3B7D18
monochromatic
#08051A #180E4A #28187D #3822B0 #5037D9

Accessibility & contrast

On white

13.84
#28187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#28187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28187D
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28187D#FFFFFF#000000##FFFFFF
##28187D1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28187d;
/* rgb */ color: rgb(40, 24, 125);
/* oklch */ color: oklch(31.3% 0.158 279.3);
Tailwind
colors: {
  custom: {
    50: '#6f58a4',
    500: '#28187d',
    950: '#000000',
  },
}
SCSS
$custom: #28187d;
$custom-light: #6f58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28187d",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 249.505,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31267,
    "c": 0.15763,
    "h": 279.3
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#28187D
secondary
#9FB23F
accent
#EB3DCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28187D

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

Preview Lab → · Contrast checker → · Palette generator →

#28187D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva