#28187F#28187F

#28187F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.160 H 279.0°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#28187F
RGBrgb(40, 24, 127)
HSLhsl(249, 68%, 30%)
HSVhsv(249, 81%, 50%)
CMYKcmyk(68.5%, 81.1%, 0%, 50.2%)
CIE-LABlab(18.52, 38.93, -54.77)
CIE-LCHlch(18.52, 67.19, 305.40°)
OKLaboklab(31.49% 0.025 -0.1582)
OKLCHoklch(31.49% 0.16 279)
XYZxyz(5.0312, 2.6363, 20.3183)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28187F #6F7F18
analogous
#183C7F #28187F #5B187F
triadic
#28187F #7F2818 #187F28
tetradic
#28187F #7F183C #6F7F18 #187F5B
square
#28187F #7F183C #6F7F18 #187F5B
split-complementary
#28187F #7F5B18 #3C7F18
monochromatic
#08051A #180E4C #28187F #3822B2 #5138D9

Accessibility & contrast

On white

13.75
#28187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#28187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28187F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28187F#FFFFFF#000000##FFFFFF
##28187F1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28187f;
/* rgb */ color: rgb(40, 24, 127);
/* oklch */ color: oklch(31.5% 0.160 279.0);
Tailwind
colors: {
  custom: {
    50: '#7058a5',
    500: '#28187f',
    950: '#000000',
  },
}
SCSS
$custom: #28187f;
$custom-light: #7058a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28187f",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 249.32,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31492,
    "c": 0.16012,
    "h": 279
  },
  "luminance": 0.02637
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28187F

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

Preview Lab → · Contrast checker → · Palette generator →

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