#28168C#28168C

#28168C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.178 H 277.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#28168C
RGBrgb(40, 22, 140)
HSLhsl(249, 73%, 32%)
HSVhsv(249, 84%, 55%)
CMYKcmyk(71.4%, 84.3%, 0%, 45.1%)
CIE-LABlab(19.71, 43.98, -60.99)
CIE-LCHlch(19.71, 75.19, 305.79°)
OKLaboklab(32.76% 0.022 -0.1762)
OKLCHoklch(32.76% 0.178 277.1)
XYZxyz(5.8941, 2.9178, 25.0584)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28168C #7A8C16
analogous
#163F8C #28168C #63168C
triadic
#28168C #8C2816 #168C28
tetradic
#28168C #8C163F #7A8C16 #168C63
square
#28168C #8C163F #7A8C16 #168C63
split-complementary
#28168C #8C6316 #3F8C16
monochromatic
#0A0522 #190E57 #28168C #371EC1 #553CE0

Accessibility & contrast

On white

13.26
#28168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#28168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28168C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28168C#FFFFFF#000000##FFFFFF
##28168C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28168c;
/* rgb */ color: rgb(40, 22, 140);
/* oklch */ color: oklch(32.8% 0.178 277.1);
Tailwind
colors: {
  custom: {
    50: '#7358af',
    500: '#28168c',
    950: '#000000',
  },
}
SCSS
$custom: #28168c;
$custom-light: #7358af;
$custom-dark: #000000;
JSON
{
  "hex": "#28168c",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 249.153,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.17759,
    "h": 277.1
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#28168C
secondary
#ACC03E
accent
#F038D4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #28168C

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

Preview Lab → · Contrast checker → · Palette generator →

#28168C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva