#28179D#28179D

#28179D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.197 H 274.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#28179D
RGBrgb(40, 23, 157)
HSLhsl(248, 74%, 35%)
HSVhsv(248, 85%, 62%)
CMYKcmyk(74.5%, 85.4%, 0%, 38.4%)
CIE-LABlab(21.94, 48.68, -67.82)
CIE-LCHlch(21.94, 83.48, 305.67°)
OKLaboklab(34.89% 0.0164 -0.196)
OKLCHoklch(34.89% 0.197 274.8)
XYZxyz(7.2653, 3.4975, 32.1839)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28179D #8C9D17
analogous
#17499D #28179D #6B179D
triadic
#28179D #9D2817 #179D28
tetradic
#28179D #9D1749 #8C9D17 #179D6B
square
#28179D #9D1749 #8C9D17 #179D6B
split-complementary
#28179D #9D6B17 #499D17
monochromatic
#0D0732 #1A0F68 #28179D #361FD2 #5E4AE4

Accessibility & contrast

On white

12.36
#28179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#28179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28179D
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28179D#FFFFFF#000000##FFFFFF
##28179D1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28179d;
/* rgb */ color: rgb(40, 23, 157);
/* oklch */ color: oklch(34.9% 0.197 274.8);
Tailwind
colors: {
  custom: {
    50: '#775abb',
    500: '#28179d',
    950: '#000000',
  },
}
SCSS
$custom: #28179d;
$custom-light: #775abb;
$custom-dark: #000000;
JSON
{
  "hex": "#28179d",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 247.612,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.19673,
    "h": 274.8
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#28179D
secondary
#B6C64A
accent
#F137D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #28179D

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

Preview Lab → · Contrast checker → · Palette generator →

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