#042F3F#042F3F

#042F3F is a dark, muted cyan. Relative luminance 0.024; OKLCH L 28.6% C 0.053 H 228.6°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#042F3F
RGBrgb(4, 47, 63)
HSLhsl(196, 88%, 13%)
HSVhsv(196, 94%, 25%)
CMYKcmyk(93.7%, 25.4%, 0%, 75.3%)
CIE-LABlab(17.54, -7.38, -14.10)
CIE-LCHlch(17.54, 15.91, 242.36°)
OKLaboklab(28.6% -0.035 -0.0397)
OKLCHoklch(28.6% 0.053 228.6)
XYZxyz(1.9634, 2.4175, 5.0648)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F3F #3F1404
analogous
#043F31 #042F3F #04113F
triadic
#042F3F #3F042F #2F3F04
tetradic
#042F3F #31043F #3F1404 #113F04
square
#042F3F #31043F #3F1404 #113F04
split-complementary
#042F3F #3F0411 #3F3104
monochromatic
#02151D #02151D #042F3F #085A79 #0B85B2

Accessibility & contrast

On white

14.15
#042F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#042F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F3F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F3F#FFFFFF#000000##FFFFFF
##042F3F1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272E40
Deuteranopia (green-blind)
#1F293F
Tritanopia (blue-blind)
#003334
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #042f3f;
/* rgb */ color: rgb(4, 47, 63);
/* oklch */ color: oklch(28.6% 0.053 228.6);
Tailwind
colors: {
  custom: {
    50: '#506774',
    500: '#042f3f',
    950: '#000000',
  },
}
SCSS
$custom: #042f3f;
$custom-light: #506774;
$custom-dark: #000000;
JSON
{
  "hex": "#042f3f",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 63
  },
  "hsl": {
    "h": 196.271,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.28596,
    "c": 0.0529,
    "h": 228.6
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#042F3F
secondary
#80391E
accent
#632AFE
background
#F4F6F7
surface
#E7EBED
border
#C3C6C8
text
#020608
muted
#787A7B

Preview Lab

Preview with #042F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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