#28388C#28388C

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

Color values

HEX#28388C
RGBrgb(40, 56, 140)
HSLhsl(230, 56%, 35%)
HSVhsv(230, 71%, 55%)
CMYKcmyk(71.4%, 60%, 0%, 45.1%)
CIE-LABlab(27.22, 23.50, -48.66)
CIE-LCHlch(27.22, 54.04, 295.78°)
OKLaboklab(38.17% 0.0004 -0.1403)
OKLCHoklch(38.17% 0.14 270.2)
XYZxyz(7.0213, 5.1722, 25.4342)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28388C #8C7C28
analogous
#286A8C #28388C #4A288C
triadic
#28388C #8C2838 #388C28
tetradic
#28388C #8C286A #8C7C28 #288C4A
square
#28388C #8C286A #8C7C28 #288C4A
split-complementary
#28388C #8C4A28 #6A8C28
monochromatic
#0D122D #1A255C #28388C #364BBC #5E70D1

Accessibility & contrast

On white

10.32
#28388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#28388C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28388C
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28388C#FFFFFF#000000##FFFFFF
##28388C1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #28388c;
/* rgb */ color: rgb(40, 56, 140);
/* oklch */ color: oklch(38.2% 0.140 270.2);
Tailwind
colors: {
  custom: {
    50: '#706eae',
    500: '#28388c',
    950: '#000000',
  },
}
SCSS
$custom: #28388c;
$custom-light: #706eae;
$custom-dark: #000000;
JSON
{
  "hex": "#28388c",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 230.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38166,
    "c": 0.14026,
    "h": 270.2
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#28388C
secondary
#B6A75A
accent
#C749DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28388C

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

Preview Lab → · Contrast checker → · Palette generator →

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