#28179E#28179E

#28179E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 35.0% C 0.198 H 274.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#28179E
RGBrgb(40, 23, 158)
HSLhsl(248, 75%, 35%)
HSVhsv(248, 85%, 62%)
CMYKcmyk(74.7%, 85.4%, 0%, 38%)
CIE-LABlab(22.06, 48.98, -68.23)
CIE-LCHlch(22.06, 83.99, 305.68°)
OKLaboklab(35.01% 0.0161 -0.1972)
OKLCHoklch(35.01% 0.198 274.7)
XYZxyz(7.3510, 3.5318, 32.6354)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28179E #8D9E17
analogous
#17499E #28179E #6C179E
triadic
#28179E #9E2817 #179E28
tetradic
#28179E #9E1749 #8D9E17 #179E6C
square
#28179E #9E1749 #8D9E17 #179E6C
split-complementary
#28179E #9E6C17 #499E17
monochromatic
#0D0733 #1A0F69 #28179E #361FD3 #5E4BE5

Accessibility & contrast

On white

12.31
#28179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#28179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28179E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28179E#FFFFFF#000000##FFFFFF
##28179E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28179e;
/* rgb */ color: rgb(40, 23, 158);
/* oklch */ color: oklch(35.0% 0.198 274.7);
Tailwind
colors: {
  custom: {
    50: '#775abc',
    500: '#28179e',
    950: '#000000',
  },
}
SCSS
$custom: #28179e;
$custom-light: #775abc;
$custom-dark: #000000;
JSON
{
  "hex": "#28179e",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 247.556,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.19788,
    "h": 274.7
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#28179E
secondary
#B7C64A
accent
#F137DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28179E

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

Preview Lab → · Contrast checker → · Palette generator →

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