#042A40#042A40

#042A40 is a dark, muted cyan. Relative luminance 0.021; OKLCH L 27.2% C 0.058 H 239.8°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#042A40
RGBrgb(4, 42, 64)
HSLhsl(202, 88%, 13%)
HSVhsv(202, 94%, 25%)
CMYKcmyk(93.8%, 34.4%, 0%, 74.9%)
CIE-LABlab(15.76, -3.53, -17.58)
CIE-LCHlch(15.76, 17.93, 258.65°)
OKLaboklab(27.19% -0.0291 -0.0499)
OKLCHoklch(27.19% 0.058 239.8)
XYZxyz(1.8031, 2.0517, 5.1505)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A40 #401A04
analogous
#044038 #042A40 #040C40
triadic
#042A40 #40042A #2A4004
tetradic
#042A40 #380440 #401A04 #0C4004
square
#042A40 #380440 #401A04 #0C4004
split-complementary
#042A40 #40040C #403804
monochromatic
#02131D #02131D #042A40 #08507A #0B76B3

Accessibility & contrast

On white

14.89
#042A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042A40
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A40#FFFFFF#000000##FFFFFF
##042A401.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042a40;
/* rgb */ color: rgb(4, 42, 64);
/* oklch */ color: oklch(27.2% 0.058 239.8);
Tailwind
colors: {
  custom: {
    50: '#506375',
    500: '#042a40',
    950: '#000000',
  },
}
SCSS
$custom: #042a40;
$custom-light: #506375;
$custom-dark: #000000;
JSON
{
  "hex": "#042a40",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 64
  },
  "hsl": {
    "h": 202,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.27192,
    "c": 0.05772,
    "h": 239.8
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#042A40
secondary
#81431F
accent
#7829FE
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042A40

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

Preview Lab → · Contrast checker → · Palette generator →

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