#042A41#042A41

#042A41 is a dark, muted cyan. Relative luminance 0.021; OKLCH L 27.3% C 0.059 H 240.9°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#042A41
RGBrgb(4, 42, 65)
HSLhsl(203, 88%, 14%)
HSVhsv(203, 94%, 25%)
CMYKcmyk(93.8%, 35.4%, 0%, 74.5%)
CIE-LABlab(15.82, -3.08, -18.18)
CIE-LCHlch(15.82, 18.44, 260.38°)
OKLaboklab(27.26% -0.0287 -0.0516)
OKLCHoklch(27.26% 0.059 240.9)
XYZxyz(1.8318, 2.0632, 5.3017)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A41 #411B04
analogous
#044139 #042A41 #040B41
triadic
#042A41 #41042A #2A4104
tetradic
#042A41 #390441 #411B04 #0B4104
square
#042A41 #390441 #411B04 #0B4104
split-complementary
#042A41 #41040B #413904
monochromatic
#02131D #02131D #042A41 #084F7B #0B75B4

Accessibility & contrast

On white

14.87
#042A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#042A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A41
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A41#FFFFFF#000000##FFFFFF
##042A411.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A42
Deuteranopia (green-blind)
#172541
Tritanopia (blue-blind)
#003032
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042a41;
/* rgb */ color: rgb(4, 42, 65);
/* oklch */ color: oklch(27.3% 0.059 240.9);
Tailwind
colors: {
  custom: {
    50: '#506375',
    500: '#042a41',
    950: '#000000',
  },
}
SCSS
$custom: #042a41;
$custom-light: #506375;
$custom-dark: #000000;
JSON
{
  "hex": "#042a41",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 65
  },
  "hsl": {
    "h": 202.623,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.27258,
    "c": 0.05905,
    "h": 240.9
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#042A41
secondary
#82441F
accent
#7A29FF
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042A41

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

Preview Lab → · Contrast checker → · Palette generator →

#042A41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva