#282940#282940

#282940 is a dark, muted blue. Relative luminance 0.024; OKLCH L 29.1% C 0.042 H 281.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#282940
RGBrgb(40, 41, 64)
HSLhsl(238, 23%, 20%)
HSVhsv(238, 38%, 25%)
CMYKcmyk(37.5%, 35.9%, 0%, 74.9%)
CIE-LABlab(17.49, 6.16, -14.71)
CIE-LCHlch(17.49, 15.95, 292.71°)
OKLaboklab(29.1% 0.0084 -0.0409)
OKLCHoklch(29.1% 0.042 281.6)
XYZxyz(2.5932, 2.4071, 5.1775)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282940 #403F28
analogous
#283540 #282940 #332840
triadic
#282940 #402829 #294028
tetradic
#282940 #402835 #403F28 #284033
square
#282940 #402835 #403F28 #284033
split-complementary
#282940 #403328 #354028
monochromatic
#0C0C13 #10111A #282940 #404166 #57598B

Accessibility & contrast

On white

14.18
#282940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#282940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282940
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282940#FFFFFF#000000##FFFFFF
##2829401.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C41
Deuteranopia (green-blind)
#212A3F
Tritanopia (blue-blind)
#222D31
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #282940;
/* rgb */ color: rgb(40, 41, 64);
/* oklch */ color: oklch(29.1% 0.042 281.6);
Tailwind
colors: {
  custom: {
    50: '#636275',
    500: '#282940',
    950: '#000000',
  },
}
SCSS
$custom: #282940;
$custom-light: #636275;
$custom-dark: #000000;
JSON
{
  "hex": "#282940",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 64
  },
  "hsl": {
    "h": 237.5,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29105,
    "c": 0.0418,
    "h": 281.6
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#282940
secondary
#727052
accent
#BC68C0
background
#F5F5F7
surface
#EAEAED
border
#C6C6C8
text
#050508
muted
#79797B

Preview Lab

Preview with #282940

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

Preview Lab → · Contrast checker → · Palette generator →

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