#042B40#042B40

#042B40 is a dark, muted cyan. Relative luminance 0.021; OKLCH L 27.5% C 0.057 H 238.0°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#042B40
RGBrgb(4, 43, 64)
HSLhsl(201, 88%, 13%)
HSVhsv(201, 94%, 25%)
CMYKcmyk(93.8%, 32.8%, 0%, 74.9%)
CIE-LABlab(16.12, -4.23, -17.00)
CIE-LCHlch(16.12, 17.52, 256.04°)
OKLaboklab(27.48% -0.0301 -0.0482)
OKLCHoklch(27.48% 0.057 238)
XYZxyz(1.8390, 2.1235, 5.1624)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B40 #401904
analogous
#044037 #042B40 #040D40
triadic
#042B40 #40042B #2B4004
tetradic
#042B40 #370440 #401904 #0D4004
square
#042B40 #370440 #401904 #0D4004
split-complementary
#042B40 #40040D #403704
monochromatic
#02131D #02131D #042B40 #08527A #0B78B3

Accessibility & contrast

On white

14.74
#042B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#042B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B40
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B40#FFFFFF#000000##FFFFFF
##042B401.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B41
Deuteranopia (green-blind)
#192640
Tritanopia (blue-blind)
#003032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042b40;
/* rgb */ color: rgb(4, 43, 64);
/* oklch */ color: oklch(27.5% 0.057 238.0);
Tailwind
colors: {
  custom: {
    50: '#506475',
    500: '#042b40',
    950: '#000000',
  },
}
SCSS
$custom: #042b40;
$custom-light: #506475;
$custom-dark: #000000;
JSON
{
  "hex": "#042b40",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 64
  },
  "hsl": {
    "h": 201,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.27482,
    "c": 0.05683,
    "h": 238
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#042B40
secondary
#81411F
accent
#7429FE
background
#F4F5F7
surface
#E7EAED
border
#C3C6C8
text
#020508
muted
#78797B

Preview Lab

Preview with #042B40

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

Preview Lab → · Contrast checker → · Palette generator →

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