#28378F#28378F

#28378F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.146 H 270.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#28378F
RGBrgb(40, 55, 143)
HSLhsl(231, 56%, 36%)
HSVhsv(231, 72%, 56%)
CMYKcmyk(72%, 61.5%, 0%, 43.9%)
CIE-LABlab(27.20, 25.32, -50.54)
CIE-LCHlch(27.20, 56.53, 296.61°)
OKLaboklab(38.23% 0.0012 -0.1458)
OKLCHoklch(38.23% 0.146 270.5)
XYZxyz(7.1975, 5.1659, 26.5991)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28378F #8F8028
analogous
#286A8F #28378F #4C288F
triadic
#28378F #8F2837 #378F28
tetradic
#28378F #8F286A #8F8028 #288F4C
square
#28378F #8F286A #8F8028 #288F4C
split-complementary
#28378F #8F4C28 #6A8F28
monochromatic
#0D122F #1B255F #28378F #3549BF #5F70D2

Accessibility & contrast

On white

10.33
#28378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28378F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28378F#FFFFFF#000000##FFFFFF
##28378F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28378f;
/* rgb */ color: rgb(40, 55, 143);
/* oklch */ color: oklch(38.2% 0.146 270.5);
Tailwind
colors: {
  custom: {
    50: '#716db1',
    500: '#28378f',
    950: '#000000',
  },
}
SCSS
$custom: #28378f;
$custom-light: #716db1;
$custom-dark: #000000;
JSON
{
  "hex": "#28378f",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 231.262,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38231,
    "c": 0.14581,
    "h": 270.5
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#28378F
secondary
#B8AA5B
accent
#CA48E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #28378F

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

Preview Lab → · Contrast checker → · Palette generator →

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