#28378E#28378E

#28378E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.144 H 270.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#28378E
RGBrgb(40, 55, 142)
HSLhsl(231, 56%, 36%)
HSVhsv(231, 72%, 56%)
CMYKcmyk(71.8%, 61.3%, 0%, 44.3%)
CIE-LABlab(27.12, 24.94, -50.06)
CIE-LCHlch(27.12, 55.93, 296.48°)
OKLaboklab(38.14% 0.0012 -0.1444)
OKLCHoklch(38.14% 0.144 270.5)
XYZxyz(7.1221, 5.1358, 26.2019)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28378E #8E7F28
analogous
#286A8E #28378E #4C288E
triadic
#28378E #8E2837 #378E28
tetradic
#28378E #8E286A #8E7F28 #288E4C
square
#28378E #8E286A #8E7F28 #288E4C
split-complementary
#28378E #8E4C28 #6A8E28
monochromatic
#0D122F #1B255E #28378E #3549BE #5F70D2

Accessibility & contrast

On white

10.36
#28378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#28378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28378E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28378E#FFFFFF#000000##FFFFFF
##28378E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28378e;
/* rgb */ color: rgb(40, 55, 142);
/* oklch */ color: oklch(38.1% 0.144 270.5);
Tailwind
colors: {
  custom: {
    50: '#706db0',
    500: '#28378e',
    950: '#000000',
  },
}
SCSS
$custom: #28378e;
$custom-light: #706db0;
$custom-dark: #000000;
JSON
{
  "hex": "#28378e",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 231.176,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38142,
    "c": 0.1444,
    "h": 270.5
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#28378E
secondary
#B7AA5B
accent
#C948DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #28378E

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

Preview Lab → · Contrast checker → · Palette generator →

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