#28378C#28378C

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

Color values

HEX#28378C
RGBrgb(40, 55, 140)
HSLhsl(231, 56%, 35%)
HSVhsv(231, 71%, 55%)
CMYKcmyk(71.4%, 60.7%, 0%, 45.1%)
CIE-LABlab(26.95, 24.18, -49.09)
CIE-LCHlch(26.95, 54.73, 296.22°)
OKLaboklab(37.97% 0.0012 -0.1416)
OKLCHoklch(37.97% 0.142 270.5)
XYZxyz(6.9733, 5.0763, 25.4182)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28378C #8C7D28
analogous
#28698C #28378C #4B288C
triadic
#28378C #8C2837 #378C28
tetradic
#28378C #8C2869 #8C7D28 #288C4B
square
#28378C #8C2869 #8C7D28 #288C4B
split-complementary
#28378C #8C4B28 #698C28
monochromatic
#0D122D #1A245C #28378C #364ABC #5E6FD1

Accessibility & contrast

On white

10.42
#28378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#28378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28378C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28378C#FFFFFF#000000##FFFFFF
##28378C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28378c;
/* rgb */ color: rgb(40, 55, 140);
/* oklch */ color: oklch(38.0% 0.142 270.5);
Tailwind
colors: {
  custom: {
    50: '#706dae',
    500: '#28378c',
    950: '#000000',
  },
}
SCSS
$custom: #28378c;
$custom-light: #706dae;
$custom-dark: #000000;
JSON
{
  "hex": "#28378c",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 231,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37966,
    "c": 0.14157,
    "h": 270.5
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#28378C
secondary
#B6A85A
accent
#C849DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28378C

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

Preview Lab → · Contrast checker → · Palette generator →

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