#042540#042540

#042540 is a dark, moderate cyan. Relative luminance 0.017; OKLCH L 25.8% C 0.063 H 247.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#042540
RGBrgb(4, 37, 64)
HSLhsl(207, 88%, 13%)
HSVhsv(207, 94%, 25%)
CMYKcmyk(93.8%, 42.2%, 0%, 74.9%)
CIE-LABlab(13.94, 0.08, -20.46)
CIE-LCHlch(13.94, 20.46, 270.22°)
OKLaboklab(25.76% -0.0239 -0.0584)
OKLCHoklch(25.76% 0.063 247.8)
XYZxyz(1.6367, 1.7189, 5.0950)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042540 #401F04
analogous
#04403D #042540 #040740
triadic
#042540 #400425 #254004
tetradic
#042540 #3D0440 #401F04 #074004
square
#042540 #3D0440 #401F04 #074004
split-complementary
#042540 #400407 #403D04
monochromatic
#02111D #02111D #042540 #08467A #0B68B3

Accessibility & contrast

On white

15.63
#042540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#042540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042540
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042540#FFFFFF#000000##FFFFFF
##0425401.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182641
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#002C2F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #042540;
/* rgb */ color: rgb(4, 37, 64);
/* oklch */ color: oklch(25.8% 0.063 247.8);
Tailwind
colors: {
  custom: {
    50: '#505f75',
    500: '#042540',
    950: '#000000',
  },
}
SCSS
$custom: #042540;
$custom-light: #505f75;
$custom-dark: #000000;
JSON
{
  "hex": "#042540",
  "rgb": {
    "r": 4,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 207,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25755,
    "c": 0.06306,
    "h": 247.8
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#042540
secondary
#814B1F
accent
#8929FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #042540

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

Preview Lab → · Contrast checker → · Palette generator →

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