#28247D#28247D

#28247D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.145 H 276.9°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#28247D
RGBrgb(40, 36, 125)
HSLhsl(243, 55%, 32%)
HSVhsv(243, 71%, 49%)
CMYKcmyk(68%, 71.2%, 0%, 51%)
CIE-LABlab(20.80, 31.26, -49.74)
CIE-LCHlch(20.80, 58.75, 302.15°)
OKLaboklab(33.04% 0.0175 -0.1436)
OKLCHoklch(33.04% 0.145 276.9)
XYZxyz(5.2064, 3.1931, 19.7400)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28247D #797D24
analogous
#244D7D #28247D #55247D
triadic
#28247D #7D2824 #247D28
tetradic
#28247D #7D244D #797D24 #247D55
square
#28247D #7D244D #797D24 #247D55
split-complementary
#28247D #7D5524 #4D7D24
monochromatic
#0A091E #19164D #28247D #3732AD #554FCC

Accessibility & contrast

On white

12.81
#28247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#28247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28247D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28247D#FFFFFF#000000##FFFFFF
##28247D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28247d;
/* rgb */ color: rgb(40, 36, 125);
/* oklch */ color: oklch(33.0% 0.145 276.9);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#28247d',
    950: '#000000',
  },
}
SCSS
$custom: #28247d;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28247d",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 242.697,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33043,
    "c": 0.14465,
    "h": 276.9
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#28247D
secondary
#ABAF4D
accent
#DF49D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28247D

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

Preview Lab → · Contrast checker → · Palette generator →

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