#28279F#28279F

#28279F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.186 H 273.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#28279F
RGBrgb(40, 39, 159)
HSLhsl(241, 61%, 39%)
HSVhsv(241, 75%, 62%)
CMYKcmyk(74.8%, 75.5%, 0%, 37.6%)
CIE-LABlab(24.97, 41.23, -64.02)
CIE-LCHlch(24.97, 76.15, 302.78°)
OKLaboklab(37.07% 0.0097 -0.1853)
OKLCHoklch(37.07% 0.186 273)
XYZxyz(7.8565, 4.4045, 33.2303)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28279F #9E9F27
analogous
#27629F #28279F #64279F
triadic
#28279F #9F2827 #279F28
tetradic
#28279F #9F2762 #9E9F27 #279F64
square
#28279F #9F2762 #9E9F27 #279F64
split-complementary
#28279F #9F6427 #629F27
monochromatic
#0F0F3D #1C1B6E #28279F #3736CE #6867DA

Accessibility & contrast

On white

11.16
#28279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#28279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28279F
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28279F#FFFFFF#000000##FFFFFF
##28279F1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28279f;
/* rgb */ color: rgb(40, 39, 159);
/* oklch */ color: oklch(37.1% 0.186 273.0);
Tailwind
colors: {
  custom: {
    50: '#7663bd',
    500: '#28279f',
    950: '#000000',
  },
}
SCSS
$custom: #28279f;
$custom-light: #7663bd;
$custom-dark: #000000;
JSON
{
  "hex": "#28279f",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 240.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37074,
    "c": 0.18552,
    "h": 273
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#28279F
secondary
#BFC062
accent
#E444E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #28279F

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

Preview Lab → · Contrast checker → · Palette generator →

#28279F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva