#042336#042336

#042336 is a very dark, muted cyan. Relative luminance 0.015; OKLCH L 24.5% C 0.051 H 240.2°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#042336
RGBrgb(4, 35, 54)
HSLhsl(203, 86%, 11%)
HSVhsv(203, 93%, 21%)
CMYKcmyk(92.6%, 35.2%, 0%, 78.8%)
CIE-LABlab(12.57, -3.06, -15.57)
CIE-LCHlch(12.57, 15.87, 258.87°)
OKLaboklab(24.47% -0.0253 -0.0441)
OKLCHoklch(24.47% 0.051 240.2)
XYZxyz(1.3167, 1.4941, 3.7083)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042336 #361704
analogous
#043630 #042336 #040A36
triadic
#042336 #360423 #233604
tetradic
#042336 #300436 #361704 #0A3604
square
#042336 #300436 #361704 #0A3604
split-complementary
#042336 #36040A #363004
monochromatic
#02121C #02121C #042336 #08486F #0C6DA8

Accessibility & contrast

On white

16.17
#042336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#042336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042336
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042336#FFFFFF#000000##FFFFFF
##0423361.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2337
Deuteranopia (green-blind)
#131F36
Tritanopia (blue-blind)
#00282A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #042336;
/* rgb */ color: rgb(4, 35, 54);
/* oklch */ color: oklch(24.5% 0.051 240.2);
Tailwind
colors: {
  custom: {
    50: '#4d5d6d',
    500: '#042336',
    950: '#000000',
  },
}
SCSS
$custom: #042336;
$custom-light: #4d5d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#042336",
  "rgb": {
    "r": 4,
    "g": 35,
    "b": 54
  },
  "hsl": {
    "h": 202.8,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.2447,
    "c": 0.05087,
    "h": 240.2
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#042336
secondary
#78401E
accent
#7B2BFC
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020407
muted
#78797A

Preview Lab

Preview with #042336

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

Preview Lab → · Contrast checker → · Palette generator →

#042336 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva