#282A40#282A40

#282A40 is a dark, muted blue. Relative luminance 0.025; OKLCH L 29.4% C 0.040 H 279.6°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#282A40
RGBrgb(40, 42, 64)
HSLhsl(235, 23%, 20%)
HSVhsv(235, 38%, 25%)
CMYKcmyk(37.5%, 34.4%, 0%, 74.9%)
CIE-LABlab(17.81, 5.44, -14.21)
CIE-LCHlch(17.81, 15.22, 290.96°)
OKLaboklab(29.35% 0.0067 -0.0395)
OKLCHoklch(29.35% 0.04 279.6)
XYZxyz(2.6282, 2.4771, 5.1892)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282A40 #403E28
analogous
#283640 #282A40 #322840
triadic
#282A40 #40282A #2A4028
tetradic
#282A40 #402836 #403E28 #284032
square
#282A40 #402836 #403E28 #284032
split-complementary
#282A40 #403228 #364028
monochromatic
#0C0C13 #10111A #282A40 #404366 #575B8B

Accessibility & contrast

On white

14.04
#282A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#282A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282A40
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282A40#FFFFFF#000000##FFFFFF
##282A401.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232D41
Deuteranopia (green-blind)
#222B3F
Tritanopia (blue-blind)
#222E32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #282a40;
/* rgb */ color: rgb(40, 42, 64);
/* oklch */ color: oklch(29.4% 0.040 279.6);
Tailwind
colors: {
  custom: {
    50: '#636375',
    500: '#282a40',
    950: '#000000',
  },
}
SCSS
$custom: #282a40;
$custom-light: #636375;
$custom-dark: #000000;
JSON
{
  "hex": "#282a40",
  "rgb": {
    "r": 40,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 235,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29353,
    "c": 0.04008,
    "h": 279.6
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#282A40
secondary
#726F52
accent
#B868C0
background
#F5F5F7
surface
#EAEAED
border
#C6C6C8
text
#050508
muted
#79797B

Preview Lab

Preview with #282A40

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

Preview Lab → · Contrast checker → · Palette generator →

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