#28378B#28378B

#28378B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.140 H 270.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#28378B
RGBrgb(40, 55, 139)
HSLhsl(231, 55%, 35%)
HSVhsv(231, 71%, 55%)
CMYKcmyk(71.2%, 60.4%, 0%, 45.5%)
CIE-LABlab(26.87, 23.80, -48.61)
CIE-LCHlch(26.87, 54.12, 296.09°)
OKLaboklab(37.88% 0.0012 -0.1401)
OKLCHoklch(37.88% 0.14 270.5)
XYZxyz(6.8999, 5.0469, 25.0316)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28378B #8B7C28
analogous
#28688B #28378B #4A288B
triadic
#28378B #8B2837 #378B28
tetradic
#28378B #8B2868 #8B7C28 #288B4A
square
#28378B #8B2868 #8B7C28 #288B4A
split-complementary
#28378B #8B4A28 #688B28
monochromatic
#0D112C #1A245B #28378B #364ABB #5D6ED0

Accessibility & contrast

On white

10.45
#28378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#28378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28378B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28378B#FFFFFF#000000##FFFFFF
##28378B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #28378b;
/* rgb */ color: rgb(40, 55, 139);
/* oklch */ color: oklch(37.9% 0.140 270.5);
Tailwind
colors: {
  custom: {
    50: '#706dae',
    500: '#28378b',
    950: '#000000',
  },
}
SCSS
$custom: #28378b;
$custom-light: #706dae;
$custom-dark: #000000;
JSON
{
  "hex": "#28378b",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 230.909,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37878,
    "c": 0.14014,
    "h": 270.5
  },
  "luminance": 0.05048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28378B

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

Preview Lab → · Contrast checker → · Palette generator →

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