#28378D#28378D

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

Color values

HEX#28378D
RGBrgb(40, 55, 141)
HSLhsl(231, 56%, 35%)
HSVhsv(231, 72%, 55%)
CMYKcmyk(71.6%, 61%, 0%, 44.7%)
CIE-LABlab(27.03, 24.56, -49.58)
CIE-LCHlch(27.03, 55.33, 296.35°)
OKLaboklab(38.05% 0.0012 -0.143)
OKLCHoklch(38.05% 0.143 270.5)
XYZxyz(7.0473, 5.1059, 25.8083)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28378D #8D7E28
analogous
#28698D #28378D #4B288D
triadic
#28378D #8D2837 #378D28
tetradic
#28378D #8D2869 #8D7E28 #288D4B
square
#28378D #8D2869 #8D7E28 #288D4B
split-complementary
#28378D #8D4B28 #698D28
monochromatic
#0D122E #1A245D #28378D #364ABD #5E6FD1

Accessibility & contrast

On white

10.39
#28378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28378D
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28378D#FFFFFF#000000##FFFFFF
##28378D1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28378d;
/* rgb */ color: rgb(40, 55, 141);
/* oklch */ color: oklch(38.1% 0.143 270.5);
Tailwind
colors: {
  custom: {
    50: '#706daf',
    500: '#28378d',
    950: '#000000',
  },
}
SCSS
$custom: #28378d;
$custom-light: #706daf;
$custom-dark: #000000;
JSON
{
  "hex": "#28378d",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 231.089,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.14298,
    "h": 270.5
  },
  "luminance": 0.05107
}

Semantic roles & 50–950 ramp

primary
#28378D
secondary
#B7A95A
accent
#C949DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28378D

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

Preview Lab → · Contrast checker → · Palette generator →

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