#28247A#28247A

#28247A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.141 H 277.3°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#28247A
RGBrgb(40, 36, 122)
HSLhsl(243, 54%, 31%)
HSVhsv(243, 70%, 48%)
CMYKcmyk(67.2%, 70.5%, 0%, 52.2%)
CIE-LABlab(20.51, 30.20, -48.32)
CIE-LCHlch(20.51, 56.98, 302.01°)
OKLaboklab(32.74% 0.0179 -0.1394)
OKLCHoklch(32.74% 0.141 277.3)
XYZxyz(5.0177, 3.1176, 18.7459)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28247A #767A24
analogous
#244B7A #28247A #53247A
triadic
#28247A #7A2824 #247A28
tetradic
#28247A #7A244B #767A24 #247A53
square
#28247A #7A244B #767A24 #247A53
split-complementary
#28247A #7A5324 #4B7A24
monochromatic
#09081B #19164B #28247A #3732A9 #544ECB

Accessibility & contrast

On white

12.93
#28247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#28247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28247A
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28247A#FFFFFF#000000##FFFFFF
##28247A1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #28247a;
/* rgb */ color: rgb(40, 36, 122);
/* oklch */ color: oklch(32.7% 0.141 277.3);
Tailwind
colors: {
  custom: {
    50: '#6d5fa1',
    500: '#28247a',
    950: '#000000',
  },
}
SCSS
$custom: #28247a;
$custom-light: #6d5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#28247a",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 242.791,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32743,
    "c": 0.14055,
    "h": 277.3
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#28247A
secondary
#A8AC4D
accent
#DE4AD7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #28247A

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

Preview Lab → · Contrast checker → · Palette generator →

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