#042A3F#042A3F

#042A3F is a dark, muted cyan. Relative luminance 0.020; OKLCH L 27.1% C 0.056 H 238.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#042A3F
RGBrgb(4, 42, 63)
HSLhsl(201, 88%, 13%)
HSVhsv(201, 94%, 25%)
CMYKcmyk(93.7%, 33.3%, 0%, 75.3%)
CIE-LABlab(15.70, -3.98, -16.98)
CIE-LCHlch(15.70, 17.44, 256.82°)
OKLaboklab(27.13% -0.0295 -0.0481)
OKLCHoklch(27.13% 0.056 238.5)
XYZxyz(1.7749, 2.0404, 5.0020)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A3F #3F1904
analogous
#043F36 #042A3F #040C3F
triadic
#042A3F #3F042A #2A3F04
tetradic
#042A3F #36043F #3F1904 #0C3F04
square
#042A3F #36043F #3F1904 #0C3F04
split-complementary
#042A3F #3F040C #3F3604
monochromatic
#02131D #02131D #042A3F #085079 #0B77B2

Accessibility & contrast

On white

14.91
#042A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#042A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A3F
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A3F#FFFFFF#000000##FFFFFF
##042A3F1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A40
Deuteranopia (green-blind)
#18253F
Tritanopia (blue-blind)
#002F31
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042a3f;
/* rgb */ color: rgb(4, 42, 63);
/* oklch */ color: oklch(27.1% 0.056 238.5);
Tailwind
colors: {
  custom: {
    50: '#506374',
    500: '#042a3f',
    950: '#000000',
  },
}
SCSS
$custom: #042a3f;
$custom-light: #506374;
$custom-dark: #000000;
JSON
{
  "hex": "#042a3f",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 63
  },
  "hsl": {
    "h": 201.356,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.27126,
    "c": 0.05641,
    "h": 238.5
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#042A3F
secondary
#80411E
accent
#752AFE
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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