#28387C#28387C

#28387C is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.117 H 269.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#28387C
RGBrgb(40, 56, 124)
HSLhsl(229, 51%, 32%)
HSVhsv(229, 68%, 49%)
CMYKcmyk(67.7%, 54.8%, 0%, 51.4%)
CIE-LABlab(25.96, 17.39, -40.70)
CIE-LCHlch(25.96, 44.26, 293.13°)
OKLaboklab(36.83% -0.0003 -0.1169)
OKLCHoklch(36.83% 0.117 269.8)
XYZxyz(5.9261, 4.7342, 19.6664)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28387C #7C6C28
analogous
#28627C #28387C #42287C
triadic
#28387C #7C2838 #387C28
tetradic
#28387C #7C2862 #7C6C28 #287C42
square
#28387C #7C2862 #7C6C28 #287C42
split-complementary
#28387C #7C4228 #627C28
monochromatic
#0A0E1F #19234E #28387C #374DAA #566CC8

Accessibility & contrast

On white

10.79
#28387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#28387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28387C
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28387C#FFFFFF#000000##FFFFFF
##28387C1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C417E
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #28387c;
/* rgb */ color: rgb(40, 56, 124);
/* oklch */ color: oklch(36.8% 0.117 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c6ea2',
    500: '#28387c',
    950: '#000000',
  },
}
SCSS
$custom: #28387c;
$custom-light: #6c6ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#28387c",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 228.571,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36828,
    "c": 0.11687,
    "h": 269.8
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#28387C
secondary
#AD9C52
accent
#C04DDB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #28387C

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

Preview Lab → · Contrast checker → · Palette generator →

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