#04143A#04143A

#04143A is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.6% C 0.077 H 262.8°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#04143A
RGBrgb(4, 20, 58)
HSLhsl(222, 87%, 12%)
HSVhsv(222, 93%, 23%)
CMYKcmyk(93.1%, 65.5%, 0%, 77.3%)
CIE-LABlab(7.51, 10.50, -26.54)
CIE-LCHlch(7.51, 28.54, 291.59°)
OKLaboklab(20.63% -0.0097 -0.0767)
OKLCHoklch(20.63% 0.077 262.8)
XYZxyz(1.0637, 0.8315, 4.1066)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04143A #3A2A04
analogous
#042F3A #04143A #0F043A
triadic
#04143A #3A0414 #143A04
tetradic
#04143A #3A042F #3A2A04 #043A0F
square
#04143A #3A042F #3A2A04 #043A0F
split-complementary
#04143A #3A0F04 #2F3A04
monochromatic
#020A1D #020A1D #04143A #082873 #0C3BAD

Accessibility & contrast

On white

18.00
#04143A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#04143A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04143A
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04143A#FFFFFF#000000##FFFFFF
##04143A1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04143a;
/* rgb */ color: rgb(4, 20, 58);
/* oklch */ color: oklch(20.6% 0.077 262.8);
Tailwind
colors: {
  custom: {
    50: '#4f5070',
    500: '#04143a',
    950: '#000000',
  },
}
SCSS
$custom: #04143a;
$custom-light: #4f5070;
$custom-dark: #000000;
JSON
{
  "hex": "#04143a",
  "rgb": {
    "r": 4,
    "g": 20,
    "b": 58
  },
  "hsl": {
    "h": 222.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20634,
    "c": 0.07733,
    "h": 262.8
  },
  "luminance": 0.00832
}

Semantic roles & 50–950 ramp

primary
#04143A
secondary
#7C601E
accent
#BF2BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #04143A

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

Preview Lab → · Contrast checker → · Palette generator →

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