#28247E#28247E

#28247E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.146 H 276.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#28247E
RGBrgb(40, 36, 126)
HSLhsl(243, 56%, 32%)
HSVhsv(243, 71%, 49%)
CMYKcmyk(68.3%, 71.4%, 0%, 50.6%)
CIE-LABlab(20.90, 31.62, -50.22)
CIE-LCHlch(20.90, 59.34, 302.20°)
OKLaboklab(33.14% 0.0173 -0.145)
OKLCHoklch(33.14% 0.146 276.8)
XYZxyz(5.2706, 3.2188, 20.0781)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28247E #7A7E24
analogous
#244D7E #28247E #55247E
triadic
#28247E #7E2824 #247E28
tetradic
#28247E #7E244D #7A7E24 #247E55
square
#28247E #7E244D #7A7E24 #247E55
split-complementary
#28247E #7E5524 #4D7E24
monochromatic
#0A091F #19164E #28247E #3732AE #5550CD

Accessibility & contrast

On white

12.78
#28247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28247E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28247E#FFFFFF#000000##FFFFFF
##28247E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #28247e;
/* rgb */ color: rgb(40, 36, 126);
/* oklch */ color: oklch(33.1% 0.146 276.8);
Tailwind
colors: {
  custom: {
    50: '#6e5fa4',
    500: '#28247e',
    950: '#000000',
  },
}
SCSS
$custom: #28247e;
$custom-light: #6e5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#28247e",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 242.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33144,
    "c": 0.146,
    "h": 276.8
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#28247E
secondary
#ACB04E
accent
#DF49D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28247E

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

Preview Lab → · Contrast checker → · Palette generator →

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