#28177F#28177F

#28177F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.161 H 279.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#28177F
RGBrgb(40, 23, 127)
HSLhsl(250, 69%, 29%)
HSVhsv(250, 82%, 50%)
CMYKcmyk(68.5%, 81.9%, 0%, 50.2%)
CIE-LABlab(18.35, 39.44, -55.06)
CIE-LCHlch(18.35, 67.73, 305.61°)
OKLaboklab(31.37% 0.0255 -0.159)
OKLCHoklch(31.37% 0.161 279.1)
XYZxyz(5.0110, 2.5958, 20.3115)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28177F #6E7F17
analogous
#173A7F #28177F #5C177F
triadic
#28177F #7F2817 #177F28
tetradic
#28177F #7F173A #6E7F17 #177F5C
square
#28177F #7F173A #6E7F17 #177F5C
split-complementary
#28177F #7F5C17 #3A7F17
monochromatic
#08051A #180E4B #28177F #3820B3 #5136DB

Accessibility & contrast

On white

13.82
#28177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#28177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28177F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28177F#FFFFFF#000000##FFFFFF
##28177F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28177f;
/* rgb */ color: rgb(40, 23, 127);
/* oklch */ color: oklch(31.4% 0.161 279.1);
Tailwind
colors: {
  custom: {
    50: '#7057a5',
    500: '#28177f',
    950: '#000000',
  },
}
SCSS
$custom: #28177f;
$custom-light: #7057a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28177f",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 249.808,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31369,
    "c": 0.16103,
    "h": 279.1
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#28177F
secondary
#A0B43E
accent
#EC3CCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28177F

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

Preview Lab → · Contrast checker → · Palette generator →

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