#28388F#28388F

#28388F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.145 H 270.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#28388F
RGBrgb(40, 56, 143)
HSLhsl(231, 56%, 36%)
HSVhsv(231, 72%, 56%)
CMYKcmyk(72%, 60.8%, 0%, 43.9%)
CIE-LABlab(27.47, 24.64, -50.11)
CIE-LCHlch(27.47, 55.84, 296.19°)
OKLaboklab(38.43% 0.0004 -0.1445)
OKLCHoklch(38.43% 0.145 270.2)
XYZxyz(7.2455, 5.2619, 26.6151)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28388F #8F7F28
analogous
#286B8F #28388F #4B288F
triadic
#28388F #8F2838 #388F28
tetradic
#28388F #8F286B #8F7F28 #288F4B
square
#28388F #8F286B #8F7F28 #288F4B
split-complementary
#28388F #8F4B28 #6B8F28
monochromatic
#0D132F #1B255F #28388F #354BBF #5F71D2

Accessibility & contrast

On white

10.23
#28388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28388F
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28388F#FFFFFF#000000##FFFFFF
##28388F1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #28388f;
/* rgb */ color: rgb(40, 56, 143);
/* oklch */ color: oklch(38.4% 0.145 270.2);
Tailwind
colors: {
  custom: {
    50: '#706eb1',
    500: '#28388f',
    950: '#000000',
  },
}
SCSS
$custom: #28388f;
$custom-light: #706eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#28388f",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 230.68,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38428,
    "c": 0.14451,
    "h": 270.2
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#28388F
secondary
#B8A95B
accent
#C848E0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #28388F

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

Preview Lab → · Contrast checker → · Palette generator →

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