#042D3F#042D3F

#042D3F is a dark, muted cyan. Relative luminance 0.023; OKLCH L 28.0% C 0.054 H 232.7°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#042D3F
RGBrgb(4, 45, 63)
HSLhsl(198, 88%, 13%)
HSVhsv(198, 94%, 25%)
CMYKcmyk(93.7%, 28.6%, 0%, 75.3%)
CIE-LABlab(16.80, -6.04, -15.25)
CIE-LCHlch(16.80, 16.40, 248.39°)
OKLaboklab(28.01% -0.0327 -0.043)
OKLCHoklch(28.01% 0.054 232.7)
XYZxyz(1.8853, 2.2612, 5.0388)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D3F #3F1604
analogous
#043F33 #042D3F #040F3F
triadic
#042D3F #3F042D #2D3F04
tetradic
#042D3F #33043F #3F1604 #0F3F04
square
#042D3F #33043F #3F1604 #0F3F04
split-complementary
#042D3F #3F040F #3F3304
monochromatic
#02151D #02151D #042D3F #085679 #0B7FB2

Accessibility & contrast

On white

14.46
#042D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#042D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D3F
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D3F#FFFFFF#000000##FFFFFF
##042D3F1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242C40
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#003233
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #042d3f;
/* rgb */ color: rgb(4, 45, 63);
/* oklch */ color: oklch(28.0% 0.054 232.7);
Tailwind
colors: {
  custom: {
    50: '#506574',
    500: '#042d3f',
    950: '#000000',
  },
}
SCSS
$custom: #042d3f;
$custom-light: #506574;
$custom-dark: #000000;
JSON
{
  "hex": "#042d3f",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 63
  },
  "hsl": {
    "h": 198.305,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.28006,
    "c": 0.05409,
    "h": 232.7
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#042D3F
secondary
#803C1E
accent
#6A2AFE
background
#F4F6F7
surface
#E7EBED
border
#C3C6C8
text
#020508
muted
#787A7B

Preview Lab

Preview with #042D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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