#28398D#28398D

#28398D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.140 H 269.8°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#28398D
RGBrgb(40, 57, 141)
HSLhsl(230, 56%, 35%)
HSVhsv(230, 72%, 55%)
CMYKcmyk(71.6%, 59.6%, 0%, 44.7%)
CIE-LABlab(27.57, 23.20, -48.70)
CIE-LCHlch(27.57, 53.95, 295.47°)
OKLaboklab(38.45% -0.0004 -0.1404)
OKLCHoklch(38.45% 0.14 269.8)
XYZxyz(7.1443, 5.2998, 25.8406)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28398D #8D7C28
analogous
#286B8D #28398D #49288D
triadic
#28398D #8D2839 #398D28
tetradic
#28398D #8D286B #8D7C28 #288D49
square
#28398D #8D286B #8D7C28 #288D49
split-complementary
#28398D #8D4928 #6B8D28
monochromatic
#0D122E #1A265D #28398D #364CBD #5E71D1

Accessibility & contrast

On white

10.19
#28398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#28398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28398D
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28398D#FFFFFF#000000##FFFFFF
##28398D1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #28398d;
/* rgb */ color: rgb(40, 57, 141);
/* oklch */ color: oklch(38.5% 0.140 269.8);
Tailwind
colors: {
  custom: {
    50: '#706faf',
    500: '#28398d',
    950: '#000000',
  },
}
SCSS
$custom: #28398d;
$custom-light: #706faf;
$custom-dark: #000000;
JSON
{
  "hex": "#28398d",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 229.901,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38454,
    "c": 0.14038,
    "h": 269.8
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

primary
#28398D
secondary
#B7A75A
accent
#C649DF
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28398D

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

Preview Lab → · Contrast checker → · Palette generator →

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