#04143F#04143F

#04143F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.2% C 0.085 H 263.7°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#04143F
RGBrgb(4, 20, 63)
HSLhsl(224, 88%, 13%)
HSVhsv(224, 94%, 25%)
CMYKcmyk(93.7%, 68.3%, 0%, 75.3%)
CIE-LABlab(7.99, 12.91, -29.33)
CIE-LCHlch(7.99, 32.05, 293.76°)
OKLaboklab(21.16% -0.0094 -0.0849)
OKLCHoklch(21.16% 0.085 263.7)
XYZxyz(1.1971, 0.8849, 4.8094)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04143F #3F2F04
analogous
#04313F #04143F #11043F
triadic
#04143F #3F0414 #143F04
tetradic
#04143F #3F0431 #3F2F04 #043F11
square
#04143F #3F0431 #3F2F04 #043F11
split-complementary
#04143F #3F1104 #313F04
monochromatic
#02091D #02091D #04143F #082679 #0B39B2

Accessibility & contrast

On white

17.84
#04143F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#04143F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04143F
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04143F#FFFFFF#000000##FFFFFF
##04143F1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #04143f;
/* rgb */ color: rgb(4, 20, 63);
/* oklch */ color: oklch(21.2% 0.085 263.7);
Tailwind
colors: {
  custom: {
    50: '#505074',
    500: '#04143f',
    950: '#000000',
  },
}
SCSS
$custom: #04143f;
$custom-light: #505074;
$custom-dark: #000000;
JSON
{
  "hex": "#04143f",
  "rgb": {
    "r": 4,
    "g": 20,
    "b": 63
  },
  "hsl": {
    "h": 223.729,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21157,
    "c": 0.08539,
    "h": 263.7
  },
  "luminance": 0.00885
}

Semantic roles & 50–950 ramp

primary
#04143F
secondary
#80661E
accent
#C52AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #04143F

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

Preview Lab → · Contrast checker → · Palette generator →

#04143F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva