#28398E#28398E

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

Color values

HEX#28398E
RGBrgb(40, 57, 142)
HSLhsl(230, 56%, 36%)
HSVhsv(230, 72%, 56%)
CMYKcmyk(71.8%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.65, 23.58, -49.19)
CIE-LCHlch(27.65, 54.55, 295.62°)
OKLaboklab(38.54% -0.0004 -0.1418)
OKLCHoklch(38.54% 0.142 269.8)
XYZxyz(7.2190, 5.3296, 26.2342)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28398E #8E7D28
analogous
#286C8E #28398E #4A288E
triadic
#28398E #8E2839 #398E28
tetradic
#28398E #8E286C #8E7D28 #288E4A
square
#28398E #8E286C #8E7D28 #288E4A
split-complementary
#28398E #8E4A28 #6C8E28
monochromatic
#0D132F #1B265E #28398E #354CBE #5F72D2

Accessibility & contrast

On white

10.16
#28398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#28398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28398E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28398E#FFFFFF#000000##FFFFFF
##28398E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28398e;
/* rgb */ color: rgb(40, 57, 142);
/* oklch */ color: oklch(38.5% 0.142 269.8);
Tailwind
colors: {
  custom: {
    50: '#706fb0',
    500: '#28398e',
    950: '#000000',
  },
}
SCSS
$custom: #28398e;
$custom-light: #706fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#28398e",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 230,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38541,
    "c": 0.1418,
    "h": 269.8
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#28398E
secondary
#B7A85B
accent
#C648DF
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28398E

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

Preview Lab → · Contrast checker → · Palette generator →

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