#28168F#28168F

#28168F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.1% C 0.181 H 276.7°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#28168F
RGBrgb(40, 22, 143)
HSLhsl(249, 73%, 32%)
HSVhsv(249, 85%, 56%)
CMYKcmyk(72%, 84.6%, 0%, 43.9%)
CIE-LABlab(20.07, 44.90, -62.26)
CIE-LCHlch(20.07, 76.76, 305.79°)
OKLaboklab(33.12% 0.021 -0.1799)
OKLCHoklch(33.12% 0.181 276.7)
XYZxyz(6.1183, 3.0075, 26.2394)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28168F #7D8F16
analogous
#16408F #28168F #65168F
triadic
#28168F #8F2816 #168F28
tetradic
#28168F #8F1640 #7D8F16 #168F65
square
#28168F #8F1640 #7D8F16 #168F65
split-complementary
#28168F #8F6516 #408F16
monochromatic
#0A0625 #190E5A #28168F #371EC4 #563EE1

Accessibility & contrast

On white

13.11
#28168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#28168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28168F
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28168F#FFFFFF#000000##FFFFFF
##28168F1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28168f;
/* rgb */ color: rgb(40, 22, 143);
/* oklch */ color: oklch(33.1% 0.181 276.7);
Tailwind
colors: {
  custom: {
    50: '#7458b1',
    500: '#28168f',
    950: '#000000',
  },
}
SCSS
$custom: #28168f;
$custom-light: #7458b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28168f",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 248.926,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33117,
    "c": 0.18114,
    "h": 276.7
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#28168F
secondary
#AEC13F
accent
#F038D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #28168F

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

Preview Lab → · Contrast checker → · Palette generator →

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