#042247#042247

#042247 is a dark, moderate cyan. Relative luminance 0.016; OKLCH L 25.5% C 0.078 H 255.7°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#042247
RGBrgb(4, 34, 71)
HSLhsl(213, 89%, 15%)
HSVhsv(213, 94%, 28%)
CMYKcmyk(94.4%, 52.1%, 0%, 72.2%)
CIE-LABlab(13.38, 5.62, -26.21)
CIE-LCHlch(13.38, 26.81, 282.10°)
OKLaboklab(25.48% -0.0191 -0.0754)
OKLCHoklch(25.48% 0.078 255.7)
XYZxyz(1.7590, 1.6246, 6.1809)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042247 #472904
analogous
#044447 #042247 #070447
triadic
#042247 #470422 #224704
tetradic
#042247 #470444 #472904 #044707
square
#042247 #470444 #472904 #044707
split-complementary
#042247 #470704 #444704
monochromatic
#020E1D #020E1D #042247 #073E81 #0B59BB

Accessibility & contrast

On white

15.85
#042247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#042247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042247
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042247#FFFFFF#000000##FFFFFF
##0422471.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2648
Deuteranopia (green-blind)
#002046
Tritanopia (blue-blind)
#002B31
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #042247;
/* rgb */ color: rgb(4, 34, 71);
/* oklch */ color: oklch(25.5% 0.078 255.7);
Tailwind
colors: {
  custom: {
    50: '#525c7a',
    500: '#042247',
    950: '#000000',
  },
}
SCSS
$custom: #042247;
$custom-light: #525c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#042247",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 213.134,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25482,
    "c": 0.07775,
    "h": 255.7
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#042247
secondary
#88591F
accent
#9F29FF
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #042247

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

Preview Lab → · Contrast checker → · Palette generator →

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