#04143B#04143B

#04143B is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.079 H 263.0°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#04143B
RGBrgb(4, 20, 59)
HSLhsl(223, 87%, 12%)
HSVhsv(223, 93%, 23%)
CMYKcmyk(93.2%, 66.1%, 0%, 76.9%)
CIE-LABlab(7.60, 10.99, -27.10)
CIE-LCHlch(7.60, 29.25, 292.08°)
OKLaboklab(20.74% -0.0096 -0.0784)
OKLCHoklch(20.74% 0.079 263)
XYZxyz(1.0894, 0.8418, 4.2419)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04143B #3B2B04
analogous
#04303B #04143B #0F043B
triadic
#04143B #3B0414 #143B04
tetradic
#04143B #3B0430 #3B2B04 #043B0F
square
#04143B #3B0430 #3B2B04 #043B0F
split-complementary
#04143B #3B0F04 #303B04
monochromatic
#020A1D #020A1D #04143B #082774 #0C3BAE

Accessibility & contrast

On white

17.97
#04143B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04143B
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04143B#FFFFFF#000000##FFFFFF
##04143B1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00143A
Tritanopia (blue-blind)
#001E25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #04143b;
/* rgb */ color: rgb(4, 20, 59);
/* oklch */ color: oklch(20.7% 0.079 263.0);
Tailwind
colors: {
  custom: {
    50: '#4f5071',
    500: '#04143b',
    950: '#000000',
  },
}
SCSS
$custom: #04143b;
$custom-light: #4f5071;
$custom-dark: #000000;
JSON
{
  "hex": "#04143b",
  "rgb": {
    "r": 4,
    "g": 20,
    "b": 59
  },
  "hsl": {
    "h": 222.545,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20737,
    "c": 0.07896,
    "h": 263
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#04143B
secondary
#7D611E
accent
#C02AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #04143B

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

Preview Lab → · Contrast checker → · Palette generator →

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