#042940#042940

#042940 is a dark, muted cyan. Relative luminance 0.020; OKLCH L 26.9% C 0.059 H 241.5°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#042940
RGBrgb(4, 41, 64)
HSLhsl(203, 88%, 13%)
HSVhsv(203, 94%, 25%)
CMYKcmyk(93.8%, 35.9%, 0%, 74.9%)
CIE-LABlab(15.39, -2.82, -18.16)
CIE-LCHlch(15.39, 18.37, 261.17°)
OKLaboklab(26.9% -0.028 -0.0516)
OKLCHoklch(26.9% 0.059 241.5)
XYZxyz(1.7681, 1.9816, 5.1388)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042940 #401B04
analogous
#044039 #042940 #040B40
triadic
#042940 #400429 #294004
tetradic
#042940 #390440 #401B04 #0B4004
square
#042940 #390440 #401B04 #0B4004
split-complementary
#042940 #40040B #403904
monochromatic
#02121D #02121D #042940 #084E7A #0B73B3

Accessibility & contrast

On white

15.04
#042940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042940
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042940#FFFFFF#000000##FFFFFF
##0429401.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2A41
Deuteranopia (green-blind)
#162440
Tritanopia (blue-blind)
#002F31
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042940;
/* rgb */ color: rgb(4, 41, 64);
/* oklch */ color: oklch(26.9% 0.059 241.5);
Tailwind
colors: {
  custom: {
    50: '#506275',
    500: '#042940',
    950: '#000000',
  },
}
SCSS
$custom: #042940;
$custom-light: #506275;
$custom-dark: #000000;
JSON
{
  "hex": "#042940",
  "rgb": {
    "r": 4,
    "g": 41,
    "b": 64
  },
  "hsl": {
    "h": 203,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26902,
    "c": 0.05868,
    "h": 241.5
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#042940
secondary
#81441F
accent
#7B29FE
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042940

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

Preview Lab → · Contrast checker → · Palette generator →

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