#28313F#28313F

#28313F is a dark, muted blue. Relative luminance 0.030; OKLCH L 31.1% C 0.028 H 259.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#28313F
RGBrgb(40, 49, 63)
HSLhsl(217, 22%, 20%)
HSVhsv(217, 37%, 25%)
CMYKcmyk(36.5%, 22.2%, 0%, 75.3%)
CIE-LABlab(20.07, 0.23, -10.05)
CIE-LCHlch(20.07, 10.05, 271.31°)
OKLaboklab(31.09% -0.0053 -0.0277)
OKLCHoklch(31.09% 0.028 259.1)
XYZxyz(2.8703, 3.0065, 5.1307)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28313F #3F3628
analogous
#283C3F #28313F #2A283F
triadic
#28313F #3F2831 #313F28
tetradic
#28313F #3F283C #3F3628 #283F2A
square
#28313F #3F283C #3F3628 #283F2A
split-complementary
#28313F #3F2A28 #3C3F28
monochromatic
#0C0F13 #10141A #28313F #404E64 #586B8A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28313F#FFFFFF#000000##FFFFFF
##28313F1.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)
#2C3240
Deuteranopia (green-blind)
#2A2F3F
Tritanopia (blue-blind)
#213436
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28313f;
/* rgb */ color: rgb(40, 49, 63);
/* oklch */ color: oklch(31.1% 0.028 259.1);
Tailwind
colors: {
  custom: {
    50: '#626974',
    500: '#28313f',
    950: '#000000',
  },
}
SCSS
$custom: #28313f;
$custom-light: #626974;
$custom-dark: #000000;
JSON
{
  "hex": "#28313f",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 63
  },
  "hsl": {
    "h": 216.522,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31093,
    "c": 0.02819,
    "h": 259.1
  },
  "luminance": 0.03007
}

Semantic roles & 50–950 ramp

primary
#28313F
secondary
#716552
accent
#9D69BF
background
#F5F6F7
surface
#EAEBED
border
#C6C6C8
text
#050608
muted
#797A7B

Preview Lab

Preview with #28313F

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

Preview Lab → · Contrast checker → · Palette generator →

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