#04043A#04043A

#04043A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.1% C 0.100 H 269.3°. Best body text is #FFFFFF at 19.38:1 contrast (WCAG AA passes).

Color values

HEX#04043A
RGBrgb(4, 4, 58)
HSLhsl(240, 87%, 12%)
HSVhsv(240, 93%, 23%)
CMYKcmyk(93.1%, 93.1%, 0%, 77.3%)
CIE-LABlab(3.78, 18.82, -32.60)
CIE-LCHlch(3.78, 37.64, 300.00°)
OKLaboklab(17.14% -0.0013 -0.0998)
OKLCHoklch(17.14% 0.1 269.3)
XYZxyz(0.8569, 0.4180, 4.0377)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04043A #3A3A04
analogous
#041F3A #04043A #1F043A
triadic
#04043A #3A0404 #043A04
tetradic
#04043A #3A041F #3A3A04 #043A1F
square
#04043A #3A041F #3A3A04 #043A1F
split-complementary
#04043A #3A1F04 #1F3A04
monochromatic
#02021D #02021D #04043A #080873 #0C0CAD

Accessibility & contrast

On white

19.38
#04043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#04043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04043A
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04043A#FFFFFF#000000##FFFFFF
##04043A1.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103B
Deuteranopia (green-blind)
#000A39
Tritanopia (blue-blind)
#00151F
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #04043a;
/* rgb */ color: rgb(4, 4, 58);
/* oklch */ color: oklch(17.1% 0.100 269.3);
Tailwind
colors: {
  custom: {
    50: '#4e4771',
    500: '#04043a',
    950: '#000000',
  },
}
SCSS
$custom: #04043a;
$custom-light: #4e4771;
$custom-dark: #000000;
JSON
{
  "hex": "#04043a",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 240,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.17136,
    "c": 0.09982,
    "h": 269.3
  },
  "luminance": 0.00418
}

Semantic roles & 50–950 ramp

primary
#04043A
secondary
#7C7C1E
accent
#FD2BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04043A

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

Preview Lab → · Contrast checker → · Palette generator →

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