#28277C#28277C

#28277C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.140 H 276.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#28277C
RGBrgb(40, 39, 124)
HSLhsl(241, 52%, 32%)
HSVhsv(241, 69%, 49%)
CMYKcmyk(67.7%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.42, 28.97, -48.09)
CIE-LCHlch(21.42, 56.15, 301.07°)
OKLaboklab(33.46% 0.0153 -0.1388)
OKLCHoklch(33.46% 0.14 276.3)
XYZxyz(5.2375, 3.3569, 19.4368)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28277C #7B7C27
analogous
#27517C #28277C #53277C
triadic
#28277C #7C2827 #277C28
tetradic
#28277C #7C2751 #7B7C27 #277C53
square
#28277C #7C2751 #7B7C27 #277C53
split-complementary
#28277C #7C5327 #517C27
monochromatic
#0A0A1F #19184D #28277C #3736AB #5654C9

Accessibility & contrast

On white

12.56
#28277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#28277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28277C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28277C#FFFFFF#000000##FFFFFF
##28277C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #28277c;
/* rgb */ color: rgb(40, 39, 124);
/* oklch */ color: oklch(33.5% 0.140 276.3);
Tailwind
colors: {
  custom: {
    50: '#6e61a3',
    500: '#28277c',
    950: '#000000',
  },
}
SCSS
$custom: #28277c;
$custom-light: #6e61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28277c",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 240.706,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33461,
    "c": 0.13959,
    "h": 276.3
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#28277C
secondary
#ADAE51
accent
#DC4CDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #28277C

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

Preview Lab → · Contrast checker → · Palette generator →

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