#04063A#04063A

#04063A is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.097 H 268.8°. Best body text is #FFFFFF at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#04063A
RGBrgb(4, 6, 58)
HSLhsl(238, 87%, 12%)
HSVhsv(238, 93%, 23%)
CMYKcmyk(93.1%, 89.7%, 0%, 77.3%)
CIE-LABlab(4.17, 18.01, -31.96)
CIE-LCHlch(4.17, 36.69, 299.40°)
OKLaboklab(17.57% -0.002 -0.0969)
OKLCHoklch(17.57% 0.097 268.8)
XYZxyz(0.8787, 0.4614, 4.0449)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04063A #3A3804
analogous
#04213A #04063A #1D043A
triadic
#04063A #3A0406 #063A04
tetradic
#04063A #3A0421 #3A3804 #043A1D
square
#04063A #3A0421 #3A3804 #043A1D
split-complementary
#04063A #3A1D04 #213A04
monochromatic
#02031D #02031D #04063A #080C73 #0C12AD

Accessibility & contrast

On white

19.22
#04063A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#04063A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04063A
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04063A#FFFFFF#000000##FFFFFF
##04063A1.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113B
Deuteranopia (green-blind)
#000C39
Tritanopia (blue-blind)
#001620
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #04063a;
/* rgb */ color: rgb(4, 6, 58);
/* oklch */ color: oklch(17.6% 0.097 268.8);
Tailwind
colors: {
  custom: {
    50: '#4f4871',
    500: '#04063a',
    950: '#000000',
  },
}
SCSS
$custom: #04063a;
$custom-light: #4f4871;
$custom-dark: #000000;
JSON
{
  "hex": "#04063a",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 58
  },
  "hsl": {
    "h": 237.778,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.17573,
    "c": 0.09689,
    "h": 268.8
  },
  "luminance": 0.00462
}

Semantic roles & 50–950 ramp

primary
#04063A
secondary
#7C781E
accent
#F52BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04063A

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

Preview Lab → · Contrast checker → · Palette generator →

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