#28179F#28179F

#28179F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.199 H 274.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#28179F
RGBrgb(40, 23, 159)
HSLhsl(248, 75%, 36%)
HSVhsv(248, 86%, 62%)
CMYKcmyk(74.8%, 85.5%, 0%, 37.6%)
CIE-LABlab(22.18, 49.28, -68.63)
CIE-LCHlch(22.18, 84.49, 305.68°)
OKLaboklab(35.13% 0.0158 -0.1984)
OKLCHoklch(35.13% 0.199 274.5)
XYZxyz(7.4374, 3.5664, 33.0906)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28179F #8E9F17
analogous
#174A9F #28179F #6C179F
triadic
#28179F #9F2817 #179F28
tetradic
#28179F #9F174A #8E9F17 #179F6C
square
#28179F #9F174A #8E9F17 #179F6C
split-complementary
#28179F #9F6C17 #4A9F17
monochromatic
#0D0834 #1B0F6A #28179F #351FD4 #5F4BE5

Accessibility & contrast

On white

12.26
#28179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28179F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28179F#FFFFFF#000000##FFFFFF
##28179F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #28179f;
/* rgb */ color: rgb(40, 23, 159);
/* oklch */ color: oklch(35.1% 0.199 274.5);
Tailwind
colors: {
  custom: {
    50: '#775abd',
    500: '#28179f',
    950: '#000000',
  },
}
SCSS
$custom: #28179f;
$custom-light: #775abd;
$custom-dark: #000000;
JSON
{
  "hex": "#28179f",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 247.5,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.19903,
    "h": 274.5
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#28179F
secondary
#B7C74B
accent
#F136DA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28179F

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

Preview Lab → · Contrast checker → · Palette generator →

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