#282440#282440

#282440 is a dark, muted blue. Relative luminance 0.021; OKLCH L 27.9% C 0.051 H 289.2°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#282440
RGBrgb(40, 36, 64)
HSLhsl(249, 28%, 20%)
HSVhsv(249, 44%, 25%)
CMYKcmyk(37.5%, 43.8%, 0%, 74.9%)
CIE-LABlab(15.92, 9.75, -17.18)
CIE-LCHlch(15.92, 19.75, 299.57°)
OKLaboklab(27.89% 0.0168 -0.0481)
OKLCHoklch(27.89% 0.051 289.2)
XYZxyz(2.4311, 2.0830, 5.1235)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282440 #3C4024
analogous
#242E40 #282440 #362440
triadic
#282440 #402824 #244028
tetradic
#282440 #40242E #3C4024 #244036
square
#282440 #40242E #3C4024 #244036
split-complementary
#282440 #403624 #2E4024
monochromatic
#0C0B14 #100E19 #282440 #403A67 #59508E

Accessibility & contrast

On white

14.82
#282440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#282440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282440
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282440#FFFFFF#000000##FFFFFF
##2824401.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2841
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#22292F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #282440;
/* rgb */ color: rgb(40, 36, 64);
/* oklch */ color: oklch(27.9% 0.051 289.2);
Tailwind
colors: {
  custom: {
    50: '#635e75',
    500: '#282440',
    950: '#000000',
  },
}
SCSS
$custom: #282440;
$custom-light: #635e75;
$custom-dark: #000000;
JSON
{
  "hex": "#282440",
  "rgb": {
    "r": 40,
    "g": 36,
    "b": 64
  },
  "hsl": {
    "h": 248.571,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27895,
    "c": 0.0509,
    "h": 289.2
  },
  "luminance": 0.02083
}

Semantic roles & 50–950 ramp

primary
#282440
secondary
#6D734D
accent
#C463B6
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #282440

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

Preview Lab → · Contrast checker → · Palette generator →

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