#28398B#28398B

#28398B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.138 H 269.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#28398B
RGBrgb(40, 57, 139)
HSLhsl(230, 55%, 35%)
HSVhsv(230, 71%, 55%)
CMYKcmyk(71.2%, 59%, 0%, 45.5%)
CIE-LABlab(27.41, 22.44, -47.73)
CIE-LCHlch(27.41, 52.74, 295.18°)
OKLaboklab(38.28% -0.0005 -0.1375)
OKLCHoklch(38.28% 0.138 269.8)
XYZxyz(6.9968, 5.2408, 25.0639)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28398B #8B7A28
analogous
#286A8B #28398B #49288B
triadic
#28398B #8B2839 #398B28
tetradic
#28398B #8B286A #8B7A28 #288B49
square
#28398B #8B286A #8B7A28 #288B49
split-complementary
#28398B #8B4928 #6A8B28
monochromatic
#0D122C #1A265B #28398B #364CBB #5D71D0

Accessibility & contrast

On white

10.25
#28398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28398B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28398B#FFFFFF#000000##FFFFFF
##28398B1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #28398b;
/* rgb */ color: rgb(40, 57, 139);
/* oklch */ color: oklch(38.3% 0.138 269.8);
Tailwind
colors: {
  custom: {
    50: '#6f6fae',
    500: '#28398b',
    950: '#000000',
  },
}
SCSS
$custom: #28398b;
$custom-light: #6f6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#28398b",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 229.697,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38282,
    "c": 0.13751,
    "h": 269.8
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28398B

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

Preview Lab → · Contrast checker → · Palette generator →

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