#28387F#28387F

#28387F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.121 H 269.9°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#28387F
RGBrgb(40, 56, 127)
HSLhsl(229, 52%, 33%)
HSVhsv(229, 69%, 50%)
CMYKcmyk(68.5%, 55.9%, 0%, 50.2%)
CIE-LABlab(26.19, 18.54, -42.22)
CIE-LCHlch(26.19, 46.11, 293.70°)
OKLaboklab(37.07% -0.0001 -0.1213)
OKLCHoklch(37.07% 0.121 269.9)
XYZxyz(6.1187, 4.8112, 20.6808)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28387F #7F6F28
analogous
#28637F #28387F #44287F
triadic
#28387F #7F2838 #387F28
tetradic
#28387F #7F2863 #7F6F28 #287F44
square
#28387F #7F2863 #7F6F28 #287F44
split-complementary
#28387F #7F4428 #637F28
monochromatic
#0B0F22 #192350 #28387F #374DAE #576CCA

Accessibility & contrast

On white

10.70
#28387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#28387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28387F
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28387F#FFFFFF#000000##FFFFFF
##28387F1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #28387f;
/* rgb */ color: rgb(40, 56, 127);
/* oklch */ color: oklch(37.1% 0.121 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d6ea5',
    500: '#28387f',
    950: '#000000',
  },
}
SCSS
$custom: #28387f;
$custom-light: #6d6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#28387f",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 228.966,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3707,
    "c": 0.12134,
    "h": 269.9
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#28387F
secondary
#AF9E54
accent
#C14CDC
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #28387F

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

Preview Lab → · Contrast checker → · Palette generator →

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