#28248B#28248B

#28248B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.163 H 275.3°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#28248B
RGBrgb(40, 36, 139)
HSLhsl(242, 59%, 34%)
HSVhsv(242, 74%, 55%)
CMYKcmyk(71.2%, 74.1%, 0%, 45.5%)
CIE-LABlab(22.22, 36.16, -56.22)
CIE-LCHlch(22.22, 66.85, 302.74°)
OKLaboklab(34.49% 0.0151 -0.1625)
OKLCHoklch(34.49% 0.163 275.3)
XYZxyz(6.1646, 3.5764, 24.7865)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28248B #878B24
analogous
#24548B #28248B #5C248B
triadic
#28248B #8B2824 #248B28
tetradic
#28248B #8B2454 #878B24 #248B5C
square
#28248B #8B2454 #878B24 #248B5C
split-complementary
#28248B #8B5C24 #548B24
monochromatic
#0C0B2A #1A175A #28248B #3631BC #5B56D3

Accessibility & contrast

On white

12.24
#28248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#28248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28248B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28248B#FFFFFF#000000##FFFFFF
##28248B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28248b;
/* rgb */ color: rgb(40, 36, 139);
/* oklch */ color: oklch(34.5% 0.163 275.3);
Tailwind
colors: {
  custom: {
    50: '#7160ae',
    500: '#28248b',
    950: '#000000',
  },
}
SCSS
$custom: #28248b;
$custom-light: #7160ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28248b",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 242.33,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.16322,
    "h": 275.3
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#28248B
secondary
#B4B753
accent
#E246DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #28248B

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

Preview Lab → · Contrast checker → · Palette generator →

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