#28248D#28248D

#28248D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.166 H 275.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#28248D
RGBrgb(40, 36, 141)
HSLhsl(242, 59%, 35%)
HSVhsv(242, 74%, 55%)
CMYKcmyk(71.6%, 74.5%, 0%, 44.7%)
CIE-LABlab(22.43, 36.84, -57.13)
CIE-LCHlch(22.43, 67.98, 302.82°)
OKLaboklab(34.7% 0.0147 -0.1651)
OKLCHoklch(34.7% 0.166 275.1)
XYZxyz(6.3121, 3.6354, 25.5632)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28248D #898D24
analogous
#24548D #28248D #5D248D
triadic
#28248D #8D2824 #248D28
tetradic
#28248D #8D2454 #898D24 #248D5D
square
#28248D #8D2454 #898D24 #248D5D
split-complementary
#28248D #8D5D24 #548D24
monochromatic
#0C0B2B #1A185C #28248D #3630BE #5C57D4

Accessibility & contrast

On white

12.16
#28248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#28248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28248D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28248D#FFFFFF#000000##FFFFFF
##28248D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28248d;
/* rgb */ color: rgb(40, 36, 141);
/* oklch */ color: oklch(34.7% 0.166 275.1);
Tailwind
colors: {
  custom: {
    50: '#7260af',
    500: '#28248d',
    950: '#000000',
  },
}
SCSS
$custom: #28248d;
$custom-light: #7260af;
$custom-dark: #000000;
JSON
{
  "hex": "#28248d",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 242.286,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34699,
    "c": 0.16581,
    "h": 275.1
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#28248D
secondary
#B5B854
accent
#E345DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #28248D

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

Preview Lab → · Contrast checker → · Palette generator →

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