#042841#042841

#042841 is a dark, moderate cyan. Relative luminance 0.019; OKLCH L 26.7% C 0.061 H 244.2°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#042841
RGBrgb(4, 40, 65)
HSLhsl(205, 88%, 14%)
HSVhsv(205, 94%, 25%)
CMYKcmyk(93.8%, 38.5%, 0%, 74.5%)
CIE-LABlab(15.09, -1.65, -19.33)
CIE-LCHlch(15.09, 19.40, 265.11°)
OKLaboklab(26.68% -0.0266 -0.055)
OKLCHoklch(26.68% 0.061 244.2)
XYZxyz(1.7626, 1.9248, 5.2786)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042841 #411D04
analogous
#04413B #042841 #040941
triadic
#042841 #410428 #284104
tetradic
#042841 #3B0441 #411D04 #094104
square
#042841 #3B0441 #411D04 #094104
split-complementary
#042841 #410409 #413B04
monochromatic
#02121D #02121D #042841 #084B7B #0B6FB4

Accessibility & contrast

On white

15.16
#042841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#042841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042841
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042841#FFFFFF#000000##FFFFFF
##0428411.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2942
Deuteranopia (green-blind)
#132341
Tritanopia (blue-blind)
#002E31
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042841;
/* rgb */ color: rgb(4, 40, 65);
/* oklch */ color: oklch(26.7% 0.061 244.2);
Tailwind
colors: {
  custom: {
    50: '#506175',
    500: '#042841',
    950: '#000000',
  },
}
SCSS
$custom: #042841;
$custom-light: #506175;
$custom-dark: #000000;
JSON
{
  "hex": "#042841",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 65
  },
  "hsl": {
    "h": 204.59,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26682,
    "c": 0.06109,
    "h": 244.2
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#042841
secondary
#82471F
accent
#8129FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042841

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

Preview Lab → · Contrast checker → · Palette generator →

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