#282942#282942

#282942 is a dark, muted blue. Relative luminance 0.024; OKLCH L 29.2% C 0.045 H 281.4°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#282942
RGBrgb(40, 41, 66)
HSLhsl(238, 25%, 21%)
HSVhsv(238, 39%, 26%)
CMYKcmyk(39.4%, 37.9%, 0%, 74.1%)
CIE-LABlab(17.60, 6.81, -15.92)
CIE-LCHlch(17.60, 17.32, 293.14°)
OKLaboklab(29.22% 0.009 -0.0444)
OKLCHoklch(29.22% 0.045 281.4)
XYZxyz(2.6511, 2.4303, 5.4826)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282942 #424128
analogous
#283642 #282942 #342842
triadic
#282942 #422829 #294228
tetradic
#282942 #422836 #424128 #284234
square
#282942 #422836 #424128 #284234
split-complementary
#282942 #423428 #364228
monochromatic
#0C0C13 #11111C #282942 #3F4168 #56588E

Accessibility & contrast

On white

14.13
#282942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#282942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282942
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282942#FFFFFF#000000##FFFFFF
##2829421.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212C43
Deuteranopia (green-blind)
#202A41
Tritanopia (blue-blind)
#212E32
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #282942;
/* rgb */ color: rgb(40, 41, 66);
/* oklch */ color: oklch(29.2% 0.045 281.4);
Tailwind
colors: {
  custom: {
    50: '#636276',
    500: '#282942',
    950: '#000000',
  },
}
SCSS
$custom: #282942;
$custom-light: #636276;
$custom-dark: #000000;
JSON
{
  "hex": "#282942",
  "rgb": {
    "r": 40,
    "g": 41,
    "b": 66
  },
  "hsl": {
    "h": 237.692,
    "s": 24.528,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29222,
    "c": 0.04534,
    "h": 281.4
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#282942
secondary
#747352
accent
#BD67C1
background
#F5F5F7
surface
#EAEAED
border
#C6C6C8
text
#050508
muted
#79797B

Preview Lab

Preview with #282942

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

Preview Lab → · Contrast checker → · Palette generator →

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