#042E3F#042E3F

#042E3F is a dark, muted cyan. Relative luminance 0.023; OKLCH L 28.3% C 0.053 H 230.7°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#042E3F
RGBrgb(4, 46, 63)
HSLhsl(197, 88%, 13%)
HSVhsv(197, 94%, 25%)
CMYKcmyk(93.7%, 27%, 0%, 75.3%)
CIE-LABlab(17.17, -6.72, -14.67)
CIE-LCHlch(17.17, 16.14, 245.41°)
OKLaboklab(28.3% -0.0338 -0.0414)
OKLCHoklch(28.3% 0.053 230.7)
XYZxyz(1.9239, 2.3384, 5.0516)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E3F #3F1504
analogous
#043F32 #042E3F #04103F
triadic
#042E3F #3F042E #2E3F04
tetradic
#042E3F #32043F #3F1504 #103F04
square
#042E3F #32043F #3F1504 #103F04
split-complementary
#042E3F #3F0410 #3F3204
monochromatic
#02151D #02151D #042E3F #085879 #0B82B2

Accessibility & contrast

On white

14.31
#042E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#042E3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042E3F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E3F#FFFFFF#000000##FFFFFF
##042E3F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252D40
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#003334
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #042e3f;
/* rgb */ color: rgb(4, 46, 63);
/* oklch */ color: oklch(28.3% 0.053 230.7);
Tailwind
colors: {
  custom: {
    50: '#506674',
    500: '#042e3f',
    950: '#000000',
  },
}
SCSS
$custom: #042e3f;
$custom-light: #506674;
$custom-dark: #000000;
JSON
{
  "hex": "#042e3f",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 63
  },
  "hsl": {
    "h": 197.288,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.28301,
    "c": 0.05345,
    "h": 230.7
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#042E3F
secondary
#803B1E
accent
#672AFE
background
#F4F6F7
surface
#E7EBED
border
#C3C6C8
text
#020608
muted
#787A7B

Preview Lab

Preview with #042E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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