#28388E#28388E

#28388E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.143 H 270.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#28388E
RGBrgb(40, 56, 142)
HSLhsl(231, 56%, 36%)
HSVhsv(231, 72%, 56%)
CMYKcmyk(71.8%, 60.6%, 0%, 44.3%)
CIE-LABlab(27.38, 24.26, -49.62)
CIE-LCHlch(27.38, 55.24, 296.06°)
OKLaboklab(38.34% 0.0004 -0.1431)
OKLCHoklch(38.34% 0.143 270.2)
XYZxyz(7.1701, 5.2317, 26.2179)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28388E #8E7E28
analogous
#286B8E #28388E #4B288E
triadic
#28388E #8E2838 #388E28
tetradic
#28388E #8E286B #8E7E28 #288E4B
square
#28388E #8E286B #8E7E28 #288E4B
split-complementary
#28388E #8E4B28 #6B8E28
monochromatic
#0D122F #1B255E #28388E #354BBE #5F71D2

Accessibility & contrast

On white

10.26
#28388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#28388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28388E
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28388E#FFFFFF#000000##FFFFFF
##28388E1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28388e;
/* rgb */ color: rgb(40, 56, 142);
/* oklch */ color: oklch(38.3% 0.143 270.2);
Tailwind
colors: {
  custom: {
    50: '#706eb0',
    500: '#28388e',
    950: '#000000',
  },
}
SCSS
$custom: #28388e;
$custom-light: #706eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#28388e",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 230.588,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38341,
    "c": 0.1431,
    "h": 270.2
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#28388E
secondary
#B7A95B
accent
#C848DF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28388E

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

Preview Lab → · Contrast checker → · Palette generator →

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