#042840#042840

#042840 is a dark, muted cyan. Relative luminance 0.019; OKLCH L 26.6% C 0.060 H 243.2°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#042840
RGBrgb(4, 40, 64)
HSLhsl(204, 88%, 13%)
HSVhsv(204, 94%, 25%)
CMYKcmyk(93.8%, 37.5%, 0%, 74.9%)
CIE-LABlab(15.03, -2.11, -18.73)
CIE-LCHlch(15.03, 18.85, 263.58°)
OKLaboklab(26.61% -0.0269 -0.0533)
OKLCHoklch(26.61% 0.06 243.2)
XYZxyz(1.7339, 1.9133, 5.1274)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042840 #401C04
analogous
#04403A #042840 #040A40
triadic
#042840 #400428 #284004
tetradic
#042840 #3A0440 #401C04 #0A4004
square
#042840 #3A0440 #401C04 #0A4004
split-complementary
#042840 #40040A #403A04
monochromatic
#02121D #02121D #042840 #084C7A #0B70B3

Accessibility & contrast

On white

15.19
#042840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#042840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042840
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042840#FFFFFF#000000##FFFFFF
##0428401.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2941
Deuteranopia (green-blind)
#142340
Tritanopia (blue-blind)
#002E31
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042840;
/* rgb */ color: rgb(4, 40, 64);
/* oklch */ color: oklch(26.6% 0.060 243.2);
Tailwind
colors: {
  custom: {
    50: '#506175',
    500: '#042840',
    950: '#000000',
  },
}
SCSS
$custom: #042840;
$custom-light: #506175;
$custom-dark: #000000;
JSON
{
  "hex": "#042840",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 204,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26613,
    "c": 0.05969,
    "h": 243.2
  },
  "luminance": 0.01914
}

Semantic roles & 50–950 ramp

primary
#042840
secondary
#81461F
accent
#7F29FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042840

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

Preview Lab → · Contrast checker → · Palette generator →

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