#042A3A#042A3A

#042A3A is a dark, muted cyan. Relative luminance 0.020; OKLCH L 26.8% C 0.050 H 231.2°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#042A3A
RGBrgb(4, 42, 58)
HSLhsl(198, 87%, 12%)
HSVhsv(198, 93%, 23%)
CMYKcmyk(93.1%, 27.6%, 0%, 77.3%)
CIE-LABlab(15.42, -6.19, -13.93)
CIE-LCHlch(15.42, 15.25, 246.06°)
OKLaboklab(26.81% -0.0315 -0.0393)
OKLCHoklch(26.81% 0.05 231.2)
XYZxyz(1.6414, 1.9870, 4.2992)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A3A #3A1404
analogous
#043A2F #042A3A #040F3A
triadic
#042A3A #3A042A #2A3A04
tetradic
#042A3A #2F043A #3A1404 #0F3A04
square
#042A3A #2F043A #3A1404 #0F3A04
split-complementary
#042A3A #3A040F #3A2F04
monochromatic
#02151D #02151D #042A3A #085373 #0C7DAD

Accessibility & contrast

On white

15.03
#042A3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042A3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A3A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A3A#FFFFFF#000000##FFFFFF
##042A3A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22293B
Deuteranopia (green-blind)
#1B243A
Tritanopia (blue-blind)
#002E2F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042a3a;
/* rgb */ color: rgb(4, 42, 58);
/* oklch */ color: oklch(26.8% 0.050 231.2);
Tailwind
colors: {
  custom: {
    50: '#4f6370',
    500: '#042a3a',
    950: '#000000',
  },
}
SCSS
$custom: #042a3a;
$custom-light: #4f6370;
$custom-dark: #000000;
JSON
{
  "hex": "#042a3a",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 58
  },
  "hsl": {
    "h": 197.778,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.26812,
    "c": 0.05038,
    "h": 231.2
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#042A3A
secondary
#7C3A1E
accent
#692BFD
background
#F4F5F6
surface
#E7EAEC
border
#C3C6C7
text
#020507
muted
#78797A

Preview Lab

Preview with #042A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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