#28398C#28398C

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

Color values

HEX#28398C
RGBrgb(40, 57, 140)
HSLhsl(230, 56%, 35%)
HSVhsv(230, 71%, 55%)
CMYKcmyk(71.4%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.49, 22.82, -48.22)
CIE-LCHlch(27.49, 53.34, 295.33°)
OKLaboklab(38.37% -0.0004 -0.1389)
OKLCHoklch(38.37% 0.139 269.8)
XYZxyz(7.0702, 5.2701, 25.4505)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28398C #8C7B28
analogous
#286B8C #28398C #49288C
triadic
#28398C #8C2839 #398C28
tetradic
#28398C #8C286B #8C7B28 #288C49
square
#28398C #8C286B #8C7B28 #288C49
split-complementary
#28398C #8C4928 #6B8C28
monochromatic
#0D122D #1A265C #28398C #364CBC #5E71D1

Accessibility & contrast

On white

10.22
#28398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#28398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28398C
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28398C#FFFFFF#000000##FFFFFF
##28398C1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28398c;
/* rgb */ color: rgb(40, 57, 140);
/* oklch */ color: oklch(38.4% 0.139 269.8);
Tailwind
colors: {
  custom: {
    50: '#706fae',
    500: '#28398c',
    950: '#000000',
  },
}
SCSS
$custom: #28398c;
$custom-light: #706fae;
$custom-dark: #000000;
JSON
{
  "hex": "#28398c",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 229.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38368,
    "c": 0.13895,
    "h": 269.8
  },
  "luminance": 0.05271
}

Semantic roles & 50–950 ramp

primary
#28398C
secondary
#B6A65A
accent
#C549DF
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #28398C

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

Preview Lab → · Contrast checker → · Palette generator →

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