#28187C#28187C

#28187C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.156 H 279.5°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#28187C
RGBrgb(40, 24, 124)
HSLhsl(250, 68%, 29%)
HSVhsv(250, 81%, 49%)
CMYKcmyk(67.7%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.18, 37.96, -53.42)
CIE-LCHlch(18.18, 65.53, 305.40°)
OKLaboklab(31.16% 0.0259 -0.1542)
OKLCHoklch(31.16% 0.156 279.5)
XYZxyz(4.8386, 2.5592, 19.3039)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28187C #6C7C18
analogous
#183A7C #28187C #5A187C
triadic
#28187C #7C2818 #187C28
tetradic
#28187C #7C183A #6C7C18 #187C5A
square
#28187C #7C183A #6C7C18 #187C5A
split-complementary
#28187C #7C5A18 #3A7C18
monochromatic
#08051A #170E49 #28187C #3922AF #5036D8

Accessibility & contrast

On white

13.89
#28187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#28187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28187C
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28187C#FFFFFF#000000##FFFFFF
##28187C1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28187c;
/* rgb */ color: rgb(40, 24, 124);
/* oklch */ color: oklch(31.2% 0.156 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f58a3',
    500: '#28187c',
    950: '#000000',
  },
}
SCSS
$custom: #28187c;
$custom-light: #6f58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28187c",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 249.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.15638,
    "h": 279.5
  },
  "luminance": 0.0256
}

Semantic roles & 50–950 ramp

primary
#28187C
secondary
#9EB13F
accent
#EA3DCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28187C

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

Preview Lab → · Contrast checker → · Palette generator →

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