#283240#283240

#283240 is a dark, muted blue. Relative luminance 0.031; OKLCH L 31.4% C 0.029 H 256.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#283240
RGBrgb(40, 50, 64)
HSLhsl(215, 23%, 20%)
HSVhsv(215, 38%, 25%)
CMYKcmyk(37.5%, 21.9%, 0%, 74.9%)
CIE-LABlab(20.45, -0.14, -10.15)
CIE-LCHlch(20.45, 10.15, 269.20°)
OKLaboklab(31.41% -0.0065 -0.028)
OKLCHoklch(31.41% 0.029 256.8)
XYZxyz(2.9408, 3.1024, 5.2934)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283240 #403628
analogous
#283E40 #283240 #2A2840
triadic
#283240 #402832 #324028
tetradic
#283240 #40283E #403628 #28402A
square
#283240 #40283E #403628 #28402A
split-complementary
#283240 #402A28 #3E4028
monochromatic
#0C0F13 #10151A #283240 #404F66 #576D8B

Accessibility & contrast

On white

12.96
#283240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#283240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283240
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283240#FFFFFF#000000##FFFFFF
##2832401.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3341
Deuteranopia (green-blind)
#2A3040
Tritanopia (blue-blind)
#213537
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #283240;
/* rgb */ color: rgb(40, 50, 64);
/* oklch */ color: oklch(31.4% 0.029 256.8);
Tailwind
colors: {
  custom: {
    50: '#626974',
    500: '#283240',
    950: '#000000',
  },
}
SCSS
$custom: #283240;
$custom-light: #626974;
$custom-dark: #000000;
JSON
{
  "hex": "#283240",
  "rgb": {
    "r": 40,
    "g": 50,
    "b": 64
  },
  "hsl": {
    "h": 215,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31406,
    "c": 0.02872,
    "h": 256.8
  },
  "luminance": 0.03102
}

Semantic roles & 50–950 ramp

primary
#283240
secondary
#726552
accent
#9B68C0
background
#F5F6F7
surface
#EAEBED
border
#C6C6C8
text
#050608
muted
#797A7B

Preview Lab

Preview with #283240

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

Preview Lab → · Contrast checker → · Palette generator →

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