#282C40#282C40

#282C40 is a dark, muted blue. Relative luminance 0.026; OKLCH L 29.9% C 0.037 H 275.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#282C40
RGBrgb(40, 44, 64)
HSLhsl(230, 23%, 20%)
HSVhsv(230, 38%, 25%)
CMYKcmyk(37.5%, 31.2%, 0%, 74.9%)
CIE-LABlab(18.46, 4.03, -13.20)
CIE-LCHlch(18.46, 13.80, 286.96°)
OKLaboklab(29.86% 0.0034 -0.0366)
OKLCHoklch(29.86% 0.037 275.2)
XYZxyz(2.7009, 2.6226, 5.2134)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C40 #403C28
analogous
#283840 #282C40 #302840
triadic
#282C40 #40282C #2C4028
tetradic
#282C40 #402838 #403C28 #284030
square
#282C40 #402838 #403C28 #284030
split-complementary
#282C40 #403028 #384028
monochromatic
#0C0D13 #10121A #282C40 #404666 #57608B

Accessibility & contrast

On white

13.77
#282C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#282C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C40
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C40#FFFFFF#000000##FFFFFF
##282C401.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262E41
Deuteranopia (green-blind)
#242C40
Tritanopia (blue-blind)
#213033
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #282c40;
/* rgb */ color: rgb(40, 44, 64);
/* oklch */ color: oklch(29.9% 0.037 275.2);
Tailwind
colors: {
  custom: {
    50: '#626475',
    500: '#282c40',
    950: '#000000',
  },
}
SCSS
$custom: #282c40;
$custom-light: #626475;
$custom-dark: #000000;
JSON
{
  "hex": "#282c40",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 64
  },
  "hsl": {
    "h": 230,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29856,
    "c": 0.03678,
    "h": 275.2
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#282C40
secondary
#726C52
accent
#B168C0
background
#F5F6F7
surface
#EAEBED
border
#C6C6C8
text
#050508
muted
#797A7B

Preview Lab

Preview with #282C40

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

Preview Lab → · Contrast checker → · Palette generator →

#282C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva