#28187E#28187E

#28187E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.159 H 279.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#28187E
RGBrgb(40, 24, 126)
HSLhsl(249, 68%, 29%)
HSVhsv(249, 81%, 49%)
CMYKcmyk(68.3%, 81%, 0%, 50.6%)
CIE-LABlab(18.41, 38.61, -54.32)
CIE-LCHlch(18.41, 66.64, 305.40°)
OKLaboklab(31.38% 0.0253 -0.1568)
OKLCHoklch(31.38% 0.159 279.2)
XYZxyz(4.9664, 2.6103, 19.9767)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28187E #6E7E18
analogous
#183B7E #28187E #5B187E
triadic
#28187E #7E2818 #187E28
tetradic
#28187E #7E183B #6E7E18 #187E5B
square
#28187E #7E183B #6E7E18 #187E5B
split-complementary
#28187E #7E5B18 #3B7E18
monochromatic
#08051A #180E4B #28187E #3822B1 #5137D9

Accessibility & contrast

On white

13.80
#28187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28187E
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28187E#FFFFFF#000000##FFFFFF
##28187E1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28187e;
/* rgb */ color: rgb(40, 24, 126);
/* oklch */ color: oklch(31.4% 0.159 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f58a4',
    500: '#28187e',
    950: '#000000',
  },
}
SCSS
$custom: #28187e;
$custom-light: #6f58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28187e",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 249.412,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3138,
    "c": 0.15887,
    "h": 279.2
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#28187E
secondary
#A0B23F
accent
#EB3DD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28187E

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

Preview Lab → · Contrast checker → · Palette generator →

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