#28177E#28177E

#28177E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.160 H 279.3°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#28177E
RGBrgb(40, 23, 126)
HSLhsl(250, 69%, 29%)
HSVhsv(250, 82%, 49%)
CMYKcmyk(68.3%, 81.7%, 0%, 50.6%)
CIE-LABlab(18.23, 39.12, -54.61)
CIE-LCHlch(18.23, 67.18, 305.62°)
OKLaboklab(31.26% 0.0258 -0.1577)
OKLCHoklch(31.26% 0.16 279.3)
XYZxyz(4.9462, 2.5699, 19.9700)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28177E #6D7E17
analogous
#173A7E #28177E #5C177E
triadic
#28177E #7E2817 #177E28
tetradic
#28177E #7E173A #6D7E17 #177E5C
square
#28177E #7E173A #6D7E17 #177E5C
split-complementary
#28177E #7E5C17 #3A7E17
monochromatic
#08051A #180E4A #28177E #3820B2 #5035DA

Accessibility & contrast

On white

13.87
#28177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#28177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28177E
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28177E#FFFFFF#000000##FFFFFF
##28177E1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28177e;
/* rgb */ color: rgb(40, 23, 126);
/* oklch */ color: oklch(31.3% 0.160 279.3);
Tailwind
colors: {
  custom: {
    50: '#7057a5',
    500: '#28177e',
    950: '#000000',
  },
}
SCSS
$custom: #28177e;
$custom-light: #7057a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28177e",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 249.903,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31255,
    "c": 0.1598,
    "h": 279.3
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#28177E
secondary
#9FB33E
accent
#EC3CCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28177E

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

Preview Lab → · Contrast checker → · Palette generator →

#28177E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva