#28418D#28418D

#28418D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.130 H 266.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#28418D
RGBrgb(40, 65, 141)
HSLhsl(225, 56%, 35%)
HSVhsv(225, 72%, 55%)
CMYKcmyk(71.6%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.80, 17.73, -45.09)
CIE-LCHlch(29.80, 48.45, 291.47°)
OKLaboklab(40.13% -0.0074 -0.1296)
OKLCHoklch(40.13% 0.13 266.7)
XYZxyz(7.5714, 6.1540, 25.9830)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28418D #8D7428
analogous
#28738D #28418D #42288D
triadic
#28418D #8D2841 #418D28
tetradic
#28418D #8D2873 #8D7428 #288D42
square
#28418D #8D2873 #8D7428 #288D42
split-complementary
#28418D #8D4228 #738D28
monochromatic
#0D152E #1A2B5D #28418D #3657BD #5E7BD1

Accessibility & contrast

On white

9.41
#28418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#28418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28418D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28418D#FFFFFF#000000##FFFFFF
##28418D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #28418d;
/* rgb */ color: rgb(40, 65, 141);
/* oklch */ color: oklch(40.1% 0.130 266.7);
Tailwind
colors: {
  custom: {
    50: '#6f75af',
    500: '#28418d',
    950: '#000000',
  },
}
SCSS
$custom: #28418d;
$custom-light: #6f75af;
$custom-dark: #000000;
JSON
{
  "hex": "#28418d",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 225.149,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40127,
    "c": 0.12985,
    "h": 266.7
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#28418D
secondary
#B7A05A
accent
#BA49DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #28418D

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

Preview Lab → · Contrast checker → · Palette generator →

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