#28279D#28279D

#28279D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.183 H 273.2°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#28279D
RGBrgb(40, 39, 157)
HSLhsl(241, 60%, 38%)
HSVhsv(241, 75%, 62%)
CMYKcmyk(74.5%, 75.2%, 0%, 38.4%)
CIE-LABlab(24.75, 40.55, -63.16)
CIE-LCHlch(24.75, 75.05, 302.70°)
OKLaboklab(36.86% 0.0101 -0.1827)
OKLCHoklch(36.86% 0.183 273.2)
XYZxyz(7.6844, 4.3357, 32.3236)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28279D #9C9D27
analogous
#27619D #28279D #63279D
triadic
#28279D #9D2827 #279D28
tetradic
#28279D #9D2761 #9C9D27 #279D63
square
#28279D #9D2761 #9C9D27 #279D63
split-complementary
#28279D #9D6327 #619D27
monochromatic
#0F0F3B #1C1B6C #28279D #3635CD #6666D9

Accessibility & contrast

On white

11.25
#28279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#28279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28279D
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28279D#FFFFFF#000000##FFFFFF
##28279D1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28279d;
/* rgb */ color: rgb(40, 39, 157);
/* oklch */ color: oklch(36.9% 0.183 273.2);
Tailwind
colors: {
  custom: {
    50: '#7563bb',
    500: '#28279d',
    950: '#000000',
  },
}
SCSS
$custom: #28279d;
$custom-light: #7563bb;
$custom-dark: #000000;
JSON
{
  "hex": "#28279d",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 240.508,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36858,
    "c": 0.18302,
    "h": 273.2
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#28279D
secondary
#BEBF61
accent
#E344E2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #28279D

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

Preview Lab → · Contrast checker → · Palette generator →

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