#042F40#042F40

#042F40 is a dark, muted cyan. Relative luminance 0.024; OKLCH L 28.7% C 0.054 H 230.2°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#042F40
RGBrgb(4, 47, 64)
HSLhsl(197, 88%, 13%)
HSVhsv(197, 94%, 25%)
CMYKcmyk(93.8%, 26.6%, 0%, 74.9%)
CIE-LABlab(17.59, -6.95, -14.70)
CIE-LCHlch(17.59, 16.27, 244.69°)
OKLaboklab(28.66% -0.0345 -0.0414)
OKLCHoklch(28.66% 0.054 230.2)
XYZxyz(1.9916, 2.4288, 5.2133)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F40 #401504
analogous
#044033 #042F40 #041140
triadic
#042F40 #40042F #2F4004
tetradic
#042F40 #330440 #401504 #114004
square
#042F40 #330440 #401504 #114004
split-complementary
#042F40 #400411 #403304
monochromatic
#02151D #02151D #042F40 #08597A #0B84B3

Accessibility & contrast

On white

14.13
#042F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#042F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##042F40#FFFFFF#000000##FFFFFF
##042F401.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)
#262E41
Deuteranopia (green-blind)
#1E2940
Tritanopia (blue-blind)
#003435
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #042f40;
/* rgb */ color: rgb(4, 47, 64);
/* oklch */ color: oklch(28.7% 0.054 230.2);
Tailwind
colors: {
  custom: {
    50: '#516775',
    500: '#042f40',
    950: '#000000',
  },
}
SCSS
$custom: #042f40;
$custom-light: #516775;
$custom-dark: #000000;
JSON
{
  "hex": "#042f40",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 64
  },
  "hsl": {
    "h": 197,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.28655,
    "c": 0.05394,
    "h": 230.2
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#042F40
secondary
#813B1F
accent
#6629FE
background
#F4F6F7
surface
#E7EBED
border
#C3C6C8
text
#020608
muted
#787A7B

Preview Lab

Preview with #042F40

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

Preview Lab → · Contrast checker → · Palette generator →

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