#28168A#28168A

#28168A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.175 H 277.4°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#28168A
RGBrgb(40, 22, 138)
HSLhsl(249, 73%, 31%)
HSVhsv(249, 84%, 54%)
CMYKcmyk(71%, 84.1%, 0%, 45.9%)
CIE-LABlab(19.47, 43.36, -60.14)
CIE-LCHlch(19.47, 74.14, 305.79°)
OKLaboklab(32.53% 0.0226 -0.1737)
OKLCHoklch(32.53% 0.175 277.4)
XYZxyz(5.7479, 2.8594, 24.2888)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28168A #788A16
analogous
#163E8A #28168A #62168A
triadic
#28168A #8A2816 #168A28
tetradic
#28168A #8A163E #788A16 #168A62
square
#28168A #8A163E #788A16 #168A62
split-complementary
#28168A #8A6216 #3E8A16
monochromatic
#090520 #190E55 #28168A #371EBF #543BE0

Accessibility & contrast

On white

13.36
#28168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#28168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28168A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28168A#FFFFFF#000000##FFFFFF
##28168A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28168a;
/* rgb */ color: rgb(40, 22, 138);
/* oklch */ color: oklch(32.5% 0.175 277.4);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#28168a',
    950: '#000000',
  },
}
SCSS
$custom: #28168a;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28168a",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 249.31,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32527,
    "c": 0.17521,
    "h": 277.4
  },
  "luminance": 0.0286
}

Semantic roles & 50–950 ramp

primary
#28168A
secondary
#AABE3E
accent
#EF39D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #28168A

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

Preview Lab → · Contrast checker → · Palette generator →

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