#042347#042347

#042347 is a dark, moderate cyan. Relative luminance 0.017; OKLCH L 25.7% C 0.076 H 254.8°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#042347
RGBrgb(4, 35, 71)
HSLhsl(212, 89%, 15%)
HSVhsv(212, 94%, 28%)
CMYKcmyk(94.4%, 50.7%, 0%, 72.2%)
CIE-LABlab(13.72, 4.85, -25.65)
CIE-LCHlch(13.72, 26.11, 280.71°)
OKLaboklab(25.75% -0.02 -0.0737)
OKLCHoklch(25.75% 0.076 254.8)
XYZxyz(1.7880, 1.6826, 6.1905)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042347 #472804
analogous
#044547 #042347 #070447
triadic
#042347 #470423 #234704
tetradic
#042347 #470445 #472804 #044707
square
#042347 #470445 #472804 #044707
split-complementary
#042347 #470704 #454704
monochromatic
#020E1D #020E1D #042347 #074081 #0B5CBB

Accessibility & contrast

On white

15.71
#042347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#042347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042347
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042347#FFFFFF#000000##FFFFFF
##0423471.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2648
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#002C31
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #042347;
/* rgb */ color: rgb(4, 35, 71);
/* oklch */ color: oklch(25.7% 0.076 254.8);
Tailwind
colors: {
  custom: {
    50: '#525d7a',
    500: '#042347',
    950: '#000000',
  },
}
SCSS
$custom: #042347;
$custom-light: #525d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#042347",
  "rgb": {
    "r": 4,
    "g": 35,
    "b": 71
  },
  "hsl": {
    "h": 212.239,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25749,
    "c": 0.07637,
    "h": 254.8
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#042347
secondary
#88571F
accent
#9C29FF
background
#F4F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #042347

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

Preview Lab → · Contrast checker → · Palette generator →

#042347 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva