#042541#042541

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

Color values

HEX#042541
RGBrgb(4, 37, 65)
HSLhsl(208, 88%, 14%)
HSVhsv(208, 94%, 25%)
CMYKcmyk(93.8%, 43.1%, 0%, 74.5%)
CIE-LABlab(14.00, 0.54, -21.05)
CIE-LCHlch(14.00, 21.05, 271.47°)
OKLaboklab(25.83% -0.0235 -0.0601)
OKLCHoklch(25.83% 0.065 248.6)
XYZxyz(1.6654, 1.7304, 5.2462)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042541 #412004
analogous
#04413E #042541 #040641
triadic
#042541 #410425 #254104
tetradic
#042541 #3E0441 #412004 #064104
square
#042541 #3E0441 #412004 #064104
split-complementary
#042541 #410406 #413E04
monochromatic
#02101D #02101D #042541 #08467B #0B67B4

Accessibility & contrast

On white

15.60
#042541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042541
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042541#FFFFFF#000000##FFFFFF
##0425411.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172742
Deuteranopia (green-blind)
#0E2140
Tritanopia (blue-blind)
#002C2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042541;
/* rgb */ color: rgb(4, 37, 65);
/* oklch */ color: oklch(25.8% 0.065 248.6);
Tailwind
colors: {
  custom: {
    50: '#505f76',
    500: '#042541',
    950: '#000000',
  },
}
SCSS
$custom: #042541;
$custom-light: #505f76;
$custom-dark: #000000;
JSON
{
  "hex": "#042541",
  "rgb": {
    "r": 4,
    "g": 37,
    "b": 65
  },
  "hsl": {
    "h": 207.541,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25829,
    "c": 0.06455,
    "h": 248.6
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#042541
secondary
#824C1F
accent
#8B29FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #042541

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

Preview Lab → · Contrast checker → · Palette generator →

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