#282540#282540

#282540 is a dark, muted blue. Relative luminance 0.021; OKLCH L 28.1% C 0.049 H 287.9°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#282540
RGBrgb(40, 37, 64)
HSLhsl(247, 27%, 20%)
HSVhsv(247, 42%, 25%)
CMYKcmyk(37.5%, 42.2%, 0%, 74.9%)
CIE-LABlab(16.23, 9.02, -16.69)
CIE-LCHlch(16.23, 18.97, 298.40°)
OKLaboklab(28.13% 0.0151 -0.0467)
OKLCHoklch(28.13% 0.049 287.9)
XYZxyz(2.4618, 2.1444, 5.1337)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282540 #3D4025
analogous
#253040 #282540 #362540
triadic
#282540 #402825 #254028
tetradic
#282540 #402530 #3D4025 #254036
square
#282540 #402530 #3D4025 #254036
split-complementary
#282540 #403625 #304025
monochromatic
#0C0B13 #100F19 #282540 #403B67 #58528E

Accessibility & contrast

On white

14.70
#282540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#282540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282540
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282540#FFFFFF#000000##FFFFFF
##2825401.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#222A2F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #282540;
/* rgb */ color: rgb(40, 37, 64);
/* oklch */ color: oklch(28.1% 0.049 287.9);
Tailwind
colors: {
  custom: {
    50: '#635f75',
    500: '#282540',
    950: '#000000',
  },
}
SCSS
$custom: #282540;
$custom-light: #635f75;
$custom-dark: #000000;
JSON
{
  "hex": "#282540",
  "rgb": {
    "r": 40,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 246.667,
    "s": 26.733,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28132,
    "c": 0.04904,
    "h": 287.9
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

primary
#282540
secondary
#6E724E
accent
#C365B9
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #282540

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

Preview Lab → · Contrast checker → · Palette generator →

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