#28313E#28313E

#28313E is a dark, muted blue. Relative luminance 0.030; OKLCH L 31.0% C 0.027 H 257.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#28313E
RGBrgb(40, 49, 62)
HSLhsl(215, 22%, 20%)
HSVhsv(215, 35%, 24%)
CMYKcmyk(35.5%, 21%, 0%, 75.7%)
CIE-LABlab(20.03, -0.08, -9.43)
CIE-LCHlch(20.03, 9.44, 269.51°)
OKLaboklab(31.04% -0.0057 -0.0259)
OKLCHoklch(31.04% 0.027 257.5)
XYZxyz(2.8426, 2.9954, 4.9849)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28313E #3E3528
analogous
#283C3E #28313E #2A283E
triadic
#28313E #3E2831 #313E28
tetradic
#28313E #3E283C #3E3528 #283E2A
square
#28313E #3E283C #3E3528 #283E2A
split-complementary
#28313E #3E2A28 #3C3E28
monochromatic
#0C0F13 #101419 #28313E #404E63 #586C88

Accessibility & contrast

On white

13.13
#28313E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28313E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28313E#FFFFFF#000000##FFFFFF
##28313E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C323F
Deuteranopia (green-blind)
#2A2F3E
Tritanopia (blue-blind)
#223435
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #28313e;
/* rgb */ color: rgb(40, 49, 62);
/* oklch */ color: oklch(31.0% 0.027 257.5);
Tailwind
colors: {
  custom: {
    50: '#626973',
    500: '#28313e',
    950: '#000000',
  },
}
SCSS
$custom: #28313e;
$custom-light: #626973;
$custom-dark: #000000;
JSON
{
  "hex": "#28313e",
  "rgb": {
    "r": 40,
    "g": 49,
    "b": 62
  },
  "hsl": {
    "h": 215.455,
    "s": 21.569,
    "l": 20
  },
  "oklch": {
    "l": 0.31044,
    "c": 0.02658,
    "h": 257.5
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#28313E
secondary
#706452
accent
#9C6ABE
background
#F5F6F6
surface
#EAEBEC
border
#C6C6C7
text
#050608
muted
#797A7B

Preview Lab

Preview with #28313E

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

Preview Lab → · Contrast checker → · Palette generator →

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