#042740#042740

#042740 is a dark, moderate cyan. Relative luminance 0.018; OKLCH L 26.3% C 0.061 H 244.8°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#042740
RGBrgb(4, 39, 64)
HSLhsl(205, 88%, 13%)
HSVhsv(205, 94%, 25%)
CMYKcmyk(93.8%, 39.1%, 0%, 74.9%)
CIE-LABlab(14.66, -1.39, -19.31)
CIE-LCHlch(14.66, 19.36, 265.89°)
OKLaboklab(26.33% -0.0259 -0.055)
OKLCHoklch(26.33% 0.061 244.8)
XYZxyz(1.7006, 1.8468, 5.1163)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042740 #401D04
analogous
#04403B #042740 #040940
triadic
#042740 #400427 #274004
tetradic
#042740 #3B0440 #401D04 #094004
square
#042740 #3B0440 #401D04 #094004
split-complementary
#042740 #400409 #403B04
monochromatic
#02121D #02121D #042740 #084A7A #0B6DB3

Accessibility & contrast

On white

15.34
#042740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#042740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042740
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042740#FFFFFF#000000##FFFFFF
##0427401.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2841
Deuteranopia (green-blind)
#122340
Tritanopia (blue-blind)
#002D30
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042740;
/* rgb */ color: rgb(4, 39, 64);
/* oklch */ color: oklch(26.3% 0.061 244.8);
Tailwind
colors: {
  custom: {
    50: '#506075',
    500: '#042740',
    950: '#000000',
  },
}
SCSS
$custom: #042740;
$custom-light: #506075;
$custom-dark: #000000;
JSON
{
  "hex": "#042740",
  "rgb": {
    "r": 4,
    "g": 39,
    "b": 64
  },
  "hsl": {
    "h": 205,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.26326,
    "c": 0.06076,
    "h": 244.8
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#042740
secondary
#81481F
accent
#8229FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042740

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

Preview Lab → · Contrast checker → · Palette generator →

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