#042236#042236

#042236 is a very dark, muted cyan. Relative luminance 0.014; OKLCH L 24.2% C 0.052 H 242.2°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#042236
RGBrgb(4, 34, 54)
HSLhsl(204, 86%, 11%)
HSVhsv(204, 93%, 21%)
CMYKcmyk(92.6%, 37%, 0%, 78.8%)
CIE-LABlab(12.20, -2.34, -16.16)
CIE-LCHlch(12.20, 16.33, 261.78°)
OKLaboklab(24.17% -0.0242 -0.0459)
OKLCHoklch(24.17% 0.052 242.2)
XYZxyz(1.2877, 1.4360, 3.6986)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042236 #361804
analogous
#043631 #042236 #040936
triadic
#042236 #360422 #223604
tetradic
#042236 #310436 #361804 #093604
square
#042236 #310436 #361804 #093604
split-complementary
#042236 #360409 #363104
monochromatic
#02121C #02121C #042236 #08466F #0C6AA8

Accessibility & contrast

On white

16.31
#042236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#042236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042236
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042236#FFFFFF#000000##FFFFFF
##0422361.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192237
Deuteranopia (green-blind)
#111E36
Tritanopia (blue-blind)
#002729
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #042236;
/* rgb */ color: rgb(4, 34, 54);
/* oklch */ color: oklch(24.2% 0.052 242.2);
Tailwind
colors: {
  custom: {
    50: '#4d5c6d',
    500: '#042236',
    950: '#000000',
  },
}
SCSS
$custom: #042236;
$custom-light: #4d5c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#042236",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 54
  },
  "hsl": {
    "h": 204,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.24173,
    "c": 0.05185,
    "h": 242.2
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#042236
secondary
#78421E
accent
#7F2BFC
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020407
muted
#78797A

Preview Lab

Preview with #042236

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

Preview Lab → · Contrast checker → · Palette generator →

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