#28187B#28187B

#28187B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.155 H 279.7°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#28187B
RGBrgb(40, 24, 123)
HSLhsl(250, 67%, 29%)
HSVhsv(250, 80%, 48%)
CMYKcmyk(67.5%, 80.5%, 0%, 51.8%)
CIE-LABlab(18.07, 37.64, -52.96)
CIE-LCHlch(18.07, 64.98, 305.40°)
OKLaboklab(31.04% 0.0261 -0.1529)
OKLCHoklch(31.04% 0.155 279.7)
XYZxyz(4.7757, 2.5341, 18.9725)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28187B #6B7B18
analogous
#183A7B #28187B #5A187B
triadic
#28187B #7B2818 #187B28
tetradic
#28187B #7B183A #6B7B18 #187B5A
square
#28187B #7B183A #6B7B18 #187B5A
split-complementary
#28187B #7B5A18 #3A7B18
monochromatic
#08051A #170E48 #28187B #3922AE #5036D8

Accessibility & contrast

On white

13.94
#28187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28187B
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28187B#FFFFFF#000000##FFFFFF
##28187B1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28187b;
/* rgb */ color: rgb(40, 24, 123);
/* oklch */ color: oklch(31.0% 0.155 279.7);
Tailwind
colors: {
  custom: {
    50: '#6f58a2',
    500: '#28187b',
    950: '#000000',
  },
}
SCSS
$custom: #28187b;
$custom-light: #6f58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28187b",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 249.697,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31043,
    "c": 0.15513,
    "h": 279.7
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#28187B
secondary
#9DB03F
accent
#EA3ECE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28187B

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

Preview Lab → · Contrast checker → · Palette generator →

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