#28245D#28245D

#28245D is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.1% C 0.098 H 281.9°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#28245D
RGBrgb(40, 36, 93)
HSLhsl(244, 44%, 25%)
HSVhsv(244, 61%, 36%)
CMYKcmyk(57%, 61.3%, 0%, 63.5%)
CIE-LABlab(17.93, 19.79, -33.66)
CIE-LCHlch(17.93, 39.04, 300.45°)
OKLaboklab(30.06% 0.0202 -0.0964)
OKLCHoklch(30.06% 0.098 281.9)
XYZxyz(3.4811, 2.5030, 10.6535)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28245D #595D24
analogous
#243C5D #28245D #45245D
triadic
#28245D #5D2824 #245D28
tetradic
#28245D #5D243C #595D24 #245D45
square
#28245D #5D243C #595D24 #245D45
split-complementary
#28245D #5D4524 #3C5D24
monochromatic
#090916 #151331 #28245D #3B3589 #4E46B5

Accessibility & contrast

On white

13.99
#28245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#28245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28245D
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28245D#FFFFFF#000000##FFFFFF
##28245D1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#11313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28245d;
/* rgb */ color: rgb(40, 36, 93);
/* oklch */ color: oklch(30.1% 0.098 281.9);
Tailwind
colors: {
  custom: {
    50: '#675e8b',
    500: '#28245d',
    950: '#000000',
  },
}
SCSS
$custom: #28245d;
$custom-light: #675e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#28245d",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 244.211,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30058,
    "c": 0.09846,
    "h": 281.9
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#28245D
secondary
#8C914C
accent
#D454CB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #28245D

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

Preview Lab → · Contrast checker → · Palette generator →

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