#28247C#28247C

#28247C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.143 H 277.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#28247C
RGBrgb(40, 36, 124)
HSLhsl(243, 55%, 31%)
HSVhsv(243, 71%, 49%)
CMYKcmyk(67.7%, 71%, 0%, 51.4%)
CIE-LABlab(20.70, 30.91, -49.27)
CIE-LCHlch(20.70, 58.16, 302.10°)
OKLaboklab(32.94% 0.0177 -0.1422)
OKLCHoklch(32.94% 0.143 277.1)
XYZxyz(5.1429, 3.1677, 19.4053)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28247C #787C24
analogous
#244C7C #28247C #54247C
triadic
#28247C #7C2824 #247C28
tetradic
#28247C #7C244C #787C24 #247C54
square
#28247C #7C244C #787C24 #247C54
split-complementary
#28247C #7C5424 #4C7C24
monochromatic
#09081D #19164D #28247C #3732AB #544FCC

Accessibility & contrast

On white

12.86
#28247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#28247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28247C
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28247C#FFFFFF#000000##FFFFFF
##28247C1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28247c;
/* rgb */ color: rgb(40, 36, 124);
/* oklch */ color: oklch(32.9% 0.143 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e5fa3',
    500: '#28247c',
    950: '#000000',
  },
}
SCSS
$custom: #28247c;
$custom-light: #6e5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#28247c",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 242.727,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32943,
    "c": 0.14329,
    "h": 277.1
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#28247C
secondary
#AAAE4D
accent
#DE49D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28247C

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

Preview Lab → · Contrast checker → · Palette generator →

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