#042A3B#042A3B

#042A3B is a dark, muted cyan. Relative luminance 0.020; OKLCH L 26.9% C 0.052 H 232.8°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#042A3B
RGBrgb(4, 42, 59)
HSLhsl(199, 87%, 12%)
HSVhsv(199, 93%, 23%)
CMYKcmyk(93.2%, 28.8%, 0%, 76.9%)
CIE-LABlab(15.47, -5.75, -14.55)
CIE-LCHlch(15.47, 15.64, 248.44°)
OKLaboklab(26.87% -0.0311 -0.0411)
OKLCHoklch(26.87% 0.052 232.8)
XYZxyz(1.6671, 1.9973, 4.4345)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A3B #3B1504
analogous
#043B30 #042A3B #040F3B
triadic
#042A3B #3B042A #2A3B04
tetradic
#042A3B #30043B #3B1504 #0F3B04
square
#042A3B #30043B #3B1504 #0F3B04
split-complementary
#042A3B #3B040F #3B3004
monochromatic
#02141D #02141D #042A3B #085374 #0C7CAE

Accessibility & contrast

On white

15.00
#042A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042A3B
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A3B#FFFFFF#000000##FFFFFF
##042A3B1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3C
Deuteranopia (green-blind)
#1A243B
Tritanopia (blue-blind)
#002F30
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042a3b;
/* rgb */ color: rgb(4, 42, 59);
/* oklch */ color: oklch(26.9% 0.052 232.8);
Tailwind
colors: {
  custom: {
    50: '#4f6371',
    500: '#042a3b',
    950: '#000000',
  },
}
SCSS
$custom: #042a3b;
$custom-light: #4f6371;
$custom-dark: #000000;
JSON
{
  "hex": "#042a3b",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 59
  },
  "hsl": {
    "h": 198.545,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.26873,
    "c": 0.05151,
    "h": 232.8
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#042A3B
secondary
#7D3B1E
accent
#6C2AFD
background
#F4F5F6
surface
#E7EAEC
border
#C3C6C7
text
#020507
muted
#78797A

Preview Lab

Preview with #042A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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