#28316B#28316B

#28316B is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.101 H 273.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#28316B
RGBrgb(40, 49, 107)
HSLhsl(232, 46%, 29%)
HSVhsv(232, 63%, 42%)
CMYKcmyk(62.6%, 54.2%, 0%, 58%)
CIE-LABlab(22.68, 15.82, -35.15)
CIE-LCHlch(22.68, 38.54, 294.22°)
OKLaboklab(33.95% 0.0056 -0.1006)
OKLCHoklch(33.95% 0.101 273.2)
XYZxyz(4.6264, 3.7089, 14.3792)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28316B #6B6228
analogous
#28536B #28316B #41286B
triadic
#28316B #6B2831 #316B28
tetradic
#28316B #6B2853 #6B6228 #286B41
square
#28316B #6B2853 #6B6228 #286B41
split-complementary
#28316B #6B4128 #536B28
monochromatic
#080A16 #171D3E #28316B #394598 #505FBE

Accessibility & contrast

On white

12.06
#28316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#28316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28316B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28316B#FFFFFF#000000##FFFFFF
##28316B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11396D
Deuteranopia (green-blind)
#02336A
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #28316b;
/* rgb */ color: rgb(40, 49, 107);
/* oklch */ color: oklch(34.0% 0.101 273.2);
Tailwind
colors: {
  custom: {
    50: '#696896',
    500: '#28316b',
    950: '#000000',
  },
}
SCSS
$custom: #28316b;
$custom-light: #696896;
$custom-dark: #000000;
JSON
{
  "hex": "#28316b",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 231.94,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33953,
    "c": 0.10078,
    "h": 273.2
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#28316B
secondary
#9D9351
accent
#C453D5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #28316B

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

Preview Lab → · Contrast checker → · Palette generator →

#28316B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva