#28277F#28277F

#28277F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.144 H 276.0°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#28277F
RGBrgb(40, 39, 127)
HSLhsl(241, 53%, 33%)
HSVhsv(241, 69%, 50%)
CMYKcmyk(68.5%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.70, 30.05, -49.53)
CIE-LCHlch(21.70, 57.94, 301.25°)
OKLaboklab(33.76% 0.0149 -0.143)
OKLCHoklch(33.76% 0.144 276)
XYZxyz(5.4301, 3.4340, 20.4512)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28277F #7E7F27
analogous
#27527F #28277F #54277F
triadic
#28277F #7F2827 #277F28
tetradic
#28277F #7F2752 #7E7F27 #277F54
square
#28277F #7F2752 #7E7F27 #277F54
split-complementary
#28277F #7F5427 #527F27
monochromatic
#0B0A21 #191950 #28277F #3735AE #5755CB

Accessibility & contrast

On white

12.45
#28277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#28277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28277F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28277F#FFFFFF#000000##FFFFFF
##28277F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28277f;
/* rgb */ color: rgb(40, 39, 127);
/* oklch */ color: oklch(33.8% 0.144 276.0);
Tailwind
colors: {
  custom: {
    50: '#6e61a5',
    500: '#28277f',
    950: '#000000',
  },
}
SCSS
$custom: #28277f;
$custom-light: #6e61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28277f",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 240.682,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33755,
    "c": 0.14373,
    "h": 276
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#28277F
secondary
#AFB052
accent
#DC4BDB
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28277F

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

Preview Lab → · Contrast checker → · Palette generator →

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