#042D40#042D40

#042D40 is a dark, muted cyan. Relative luminance 0.023; OKLCH L 28.1% C 0.055 H 234.2°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#042D40
RGBrgb(4, 45, 64)
HSLhsl(199, 88%, 13%)
HSVhsv(199, 94%, 25%)
CMYKcmyk(93.8%, 29.7%, 0%, 74.9%)
CIE-LABlab(16.86, -5.61, -15.85)
CIE-LCHlch(16.86, 16.82, 250.53°)
OKLaboklab(28.07% -0.0323 -0.0448)
OKLCHoklch(28.07% 0.055 234.2)
XYZxyz(1.9135, 2.2725, 5.1873)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D40 #401704
analogous
#044035 #042D40 #040F40
triadic
#042D40 #40042D #2D4004
tetradic
#042D40 #350440 #401704 #0F4004
square
#042D40 #350440 #401704 #0F4004
split-complementary
#042D40 #40040F #403504
monochromatic
#02141D #02141D #042D40 #08557A #0B7EB3

Accessibility & contrast

On white

14.44
#042D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042D40
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D40#FFFFFF#000000##FFFFFF
##042D401.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242D41
Deuteranopia (green-blind)
#1C2740
Tritanopia (blue-blind)
#003234
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #042d40;
/* rgb */ color: rgb(4, 45, 64);
/* oklch */ color: oklch(28.1% 0.055 234.2);
Tailwind
colors: {
  custom: {
    50: '#506575',
    500: '#042d40',
    950: '#000000',
  },
}
SCSS
$custom: #042d40;
$custom-light: #506575;
$custom-dark: #000000;
JSON
{
  "hex": "#042d40",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 64
  },
  "hsl": {
    "h": 199,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.28067,
    "c": 0.05524,
    "h": 234.2
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#042D40
secondary
#813E1F
accent
#6D29FE
background
#F4F6F7
surface
#E7EBED
border
#C3C6C8
text
#020508
muted
#787A7B

Preview Lab

Preview with #042D40

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

Preview Lab → · Contrast checker → · Palette generator →

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