#28277D#28277D

#28277D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.141 H 276.2°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#28277D
RGBrgb(40, 39, 125)
HSLhsl(241, 52%, 32%)
HSVhsv(241, 69%, 49%)
CMYKcmyk(68%, 68.8%, 0%, 51%)
CIE-LABlab(21.51, 29.33, -48.57)
CIE-LCHlch(21.51, 56.74, 301.13°)
OKLaboklab(33.56% 0.0151 -0.1402)
OKLCHoklch(33.56% 0.141 276.2)
XYZxyz(5.3011, 3.3824, 19.7716)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28277D #7C7D27
analogous
#27517D #28277D #53277D
triadic
#28277D #7D2827 #277D28
tetradic
#28277D #7D2751 #7C7D27 #277D53
square
#28277D #7D2751 #7C7D27 #277D53
split-complementary
#28277D #7D5327 #517D27
monochromatic
#0A0A20 #19184E #28277D #3736AC #5655CA

Accessibility & contrast

On white

12.53
#28277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#28277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28277D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28277D#FFFFFF#000000##FFFFFF
##28277D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #28277d;
/* rgb */ color: rgb(40, 39, 125);
/* oklch */ color: oklch(33.6% 0.141 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e61a3',
    500: '#28277d',
    950: '#000000',
  },
}
SCSS
$custom: #28277d;
$custom-light: #6e61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28277d",
  "rgb": {
    "r": 40,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 240.698,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33559,
    "c": 0.14098,
    "h": 276.2
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28277D

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

Preview Lab → · Contrast checker → · Palette generator →

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