#042240#042240

#042240 is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 24.9% C 0.067 H 251.8°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#042240
RGBrgb(4, 34, 64)
HSLhsl(210, 88%, 13%)
HSVhsv(210, 94%, 25%)
CMYKcmyk(93.8%, 46.9%, 0%, 74.9%)
CIE-LABlab(12.86, 2.33, -22.17)
CIE-LCHlch(12.86, 22.29, 275.99°)
OKLaboklab(24.91% -0.0209 -0.0635)
OKLCHoklch(24.91% 0.067 251.8)
XYZxyz(1.5472, 1.5398, 5.0652)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042240 #402204
analogous
#044040 #042240 #040440
triadic
#042240 #400422 #224004
tetradic
#042240 #400440 #402204 #044004
square
#042240 #400440 #402204 #044004
split-complementary
#042240 #400404 #404004
monochromatic
#020F1D #020F1D #042240 #08417A #0B5FB3

Accessibility & contrast

On white

16.06
#042240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#042240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042240
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042240#FFFFFF#000000##FFFFFF
##0422401.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#081F3F
Tritanopia (blue-blind)
#00292D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #042240;
/* rgb */ color: rgb(4, 34, 64);
/* oklch */ color: oklch(24.9% 0.067 251.8);
Tailwind
colors: {
  custom: {
    50: '#505c75',
    500: '#042240',
    950: '#000000',
  },
}
SCSS
$custom: #042240;
$custom-light: #505c75;
$custom-dark: #000000;
JSON
{
  "hex": "#042240",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 210,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2491,
    "c": 0.06683,
    "h": 251.8
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#042240
secondary
#81501F
accent
#9429FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #042240

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

Preview Lab → · Contrast checker → · Palette generator →

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