#042A39#042A39

#042A39 is a dark, muted cyan. Relative luminance 0.020; OKLCH L 26.8% C 0.049 H 229.5°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#042A39
RGBrgb(4, 42, 57)
HSLhsl(197, 87%, 12%)
HSVhsv(197, 93%, 22%)
CMYKcmyk(93%, 26.3%, 0%, 77.6%)
CIE-LABlab(15.37, -6.62, -13.32)
CIE-LCHlch(15.37, 14.87, 243.56°)
OKLaboklab(26.75% -0.032 -0.0375)
OKLCHoklch(26.75% 0.049 229.5)
XYZxyz(1.6162, 1.9769, 4.1665)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A39 #391304
analogous
#04392E #042A39 #041039
triadic
#042A39 #39042A #2A3904
tetradic
#042A39 #2E0439 #391304 #103904
square
#042A39 #2E0439 #391304 #103904
split-complementary
#042A39 #390410 #392E04
monochromatic
#02151D #02151D #042A39 #085472 #0C7EAB

Accessibility & contrast

On white

15.05
#042A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A39
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A39#FFFFFF#000000##FFFFFF
##042A391.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22293A
Deuteranopia (green-blind)
#1B2439
Tritanopia (blue-blind)
#002E2F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042a39;
/* rgb */ color: rgb(4, 42, 57);
/* oklch */ color: oklch(26.8% 0.049 229.5);
Tailwind
colors: {
  custom: {
    50: '#4e636f',
    500: '#042a39',
    950: '#000000',
  },
}
SCSS
$custom: #042a39;
$custom-light: #4e636f;
$custom-dark: #000000;
JSON
{
  "hex": "#042a39",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 57
  },
  "hsl": {
    "h": 196.981,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.26752,
    "c": 0.04929,
    "h": 229.5
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#042A39
secondary
#7B381E
accent
#662BFD
background
#F4F5F6
surface
#E7EAEC
border
#C3C6C7
text
#020507
muted
#78797A

Preview Lab

Preview with #042A39

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

Preview Lab → · Contrast checker → · Palette generator →

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