#28283F#28283F

#28283F is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.8% C 0.042 H 283.5°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#28283F
RGBrgb(40, 40, 63)
HSLhsl(240, 22%, 20%)
HSVhsv(240, 37%, 25%)
CMYKcmyk(36.5%, 36.5%, 0%, 75.3%)
CIE-LABlab(17.12, 6.55, -14.60)
CIE-LCHlch(17.12, 16.00, 294.15°)
OKLaboklab(28.8% 0.0097 -0.0406)
OKLCHoklch(28.8% 0.042 283.5)
XYZxyz(2.5308, 2.3275, 5.0176)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28283F #3F3F28
analogous
#28333F #28283F #33283F
triadic
#28283F #3F2828 #283F28
tetradic
#28283F #3F2833 #3F3F28 #283F33
square
#28283F #3F2833 #3F3F28 #283F33
split-complementary
#28283F #3F3328 #333F28
monochromatic
#0C0C13 #10101A #28283F #404064 #58588A

Accessibility & contrast

On white

14.33
#28283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#28283F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28283F
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28283F#FFFFFF#000000##FFFFFF
##28283F1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B40
Deuteranopia (green-blind)
#20293E
Tritanopia (blue-blind)
#222C30
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #28283f;
/* rgb */ color: rgb(40, 40, 63);
/* oklch */ color: oklch(28.8% 0.042 283.5);
Tailwind
colors: {
  custom: {
    50: '#636174',
    500: '#28283f',
    950: '#000000',
  },
}
SCSS
$custom: #28283f;
$custom-light: #636174;
$custom-dark: #000000;
JSON
{
  "hex": "#28283f",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 240,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28799,
    "c": 0.04178,
    "h": 283.5
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#28283F
secondary
#717152
accent
#BF69BF
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050508
muted
#79797B

Preview Lab

Preview with #28283F

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

Preview Lab → · Contrast checker → · Palette generator →

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