#282838#282838

#282838 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.4% C 0.029 H 284.4°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#282838
RGBrgb(40, 40, 56)
HSLhsl(240, 17%, 19%)
HSVhsv(240, 29%, 22%)
CMYKcmyk(28.6%, 28.6%, 0%, 78%)
CIE-LABlab(16.77, 4.37, -10.28)
CIE-LCHlch(16.77, 11.17, 293.03°)
OKLaboklab(28.41% 0.0073 -0.0283)
OKLCHoklch(28.41% 0.029 284.4)
XYZxyz(2.3475, 2.2542, 4.0520)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282838 #383828
analogous
#283038 #282838 #302838
triadic
#282838 #382828 #283828
tetradic
#282838 #382830 #383828 #283830
square
#282838 #382830 #383828 #283830
split-complementary
#282838 #383028 #303828
monochromatic
#0D0D12 #0F0F14 #282838 #42425C #5B5B7F

Accessibility & contrast

On white

14.47
#282838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#282838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282838
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282838#FFFFFF#000000##FFFFFF
##2828381.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242A39
Deuteranopia (green-blind)
#232938
Tritanopia (blue-blind)
#242B2E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #282838;
/* rgb */ color: rgb(40, 40, 56);
/* oklch */ color: oklch(28.4% 0.029 284.4);
Tailwind
colors: {
  custom: {
    50: '#62616e',
    500: '#282838',
    950: '#000000',
  },
}
SCSS
$custom: #282838;
$custom-light: #62616e;
$custom-dark: #000000;
JSON
{
  "hex": "#282838",
  "rgb": {
    "r": 40,
    "g": 40,
    "b": 56
  },
  "hsl": {
    "h": 240,
    "s": 16.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28412,
    "c": 0.0292,
    "h": 284.4
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#282838
secondary
#696953
accent
#B96EB9
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050507
muted
#79797A

Preview Lab

Preview with #282838

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

Preview Lab → · Contrast checker → · Palette generator →

#282838 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva