#042C40#042C40

#042C40 is a dark, muted cyan. Relative luminance 0.022; OKLCH L 27.8% C 0.056 H 236.1°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#042C40
RGBrgb(4, 44, 64)
HSLhsl(200, 88%, 13%)
HSVhsv(200, 94%, 25%)
CMYKcmyk(93.8%, 31.2%, 0%, 74.9%)
CIE-LABlab(16.49, -4.92, -16.43)
CIE-LCHlch(16.49, 17.15, 253.33°)
OKLaboklab(27.77% -0.0312 -0.0465)
OKLCHoklch(27.77% 0.056 236.1)
XYZxyz(1.8758, 2.1971, 5.1747)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C40 #401804
analogous
#044036 #042C40 #040E40
triadic
#042C40 #40042C #2C4004
tetradic
#042C40 #360440 #401804 #0E4004
square
#042C40 #360440 #401804 #0E4004
split-complementary
#042C40 #40040E #403604
monochromatic
#02141D #02141D #042C40 #08547A #0B7BB3

Accessibility & contrast

On white

14.59
#042C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#042C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042C40
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C40#FFFFFF#000000##FFFFFF
##042C401.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222C41
Deuteranopia (green-blind)
#1A2640
Tritanopia (blue-blind)
#003133
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #042c40;
/* rgb */ color: rgb(4, 44, 64);
/* oklch */ color: oklch(27.8% 0.056 236.1);
Tailwind
colors: {
  custom: {
    50: '#506575',
    500: '#042c40',
    950: '#000000',
  },
}
SCSS
$custom: #042c40;
$custom-light: #506575;
$custom-dark: #000000;
JSON
{
  "hex": "#042c40",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 64
  },
  "hsl": {
    "h": 200,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.27774,
    "c": 0.056,
    "h": 236.1
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#042C40
secondary
#813F1F
accent
#7029FE
background
#F4F6F7
surface
#E7EBED
border
#C3C6C8
text
#020508
muted
#787A7B

Preview Lab

Preview with #042C40

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

Preview Lab → · Contrast checker → · Palette generator →

#042C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva