#04083B#04083B

#04083B is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.096 H 268.2°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#04083B
RGBrgb(4, 8, 59)
HSLhsl(236, 87%, 12%)
HSVhsv(236, 93%, 23%)
CMYKcmyk(93.2%, 86.4%, 0%, 76.9%)
CIE-LABlab(4.65, 17.77, -31.90)
CIE-LCHlch(4.65, 36.51, 299.12°)
OKLaboklab(18.12% -0.003 -0.0955)
OKLCHoklch(18.12% 0.096 268.2)
XYZxyz(0.9260, 0.5151, 4.1874)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04083B #3B3704
analogous
#04243B #04083B #1B043B
triadic
#04083B #3B0408 #083B04
tetradic
#04083B #3B0424 #3B3704 #043B1B
square
#04083B #3B0424 #3B3704 #043B1B
split-complementary
#04083B #3B1B04 #243B04
monochromatic
#02041D #02041D #04083B #081074 #0C18AE

Accessibility & contrast

On white

19.04
#04083B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#04083B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04083B
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04083B#FFFFFF#000000##FFFFFF
##04083B1.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133C
Deuteranopia (green-blind)
#000D3A
Tritanopia (blue-blind)
#001721
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #04083b;
/* rgb */ color: rgb(4, 8, 59);
/* oklch */ color: oklch(18.1% 0.096 268.2);
Tailwind
colors: {
  custom: {
    50: '#4f4972',
    500: '#04083b',
    950: '#000000',
  },
}
SCSS
$custom: #04083b;
$custom-light: #4f4972;
$custom-dark: #000000;
JSON
{
  "hex": "#04083b",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 59
  },
  "hsl": {
    "h": 235.636,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18123,
    "c": 0.0956,
    "h": 268.2
  },
  "luminance": 0.00515
}

Semantic roles & 50–950 ramp

primary
#04083B
secondary
#7D761E
accent
#EE2AFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04083B

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

Preview Lab → · Contrast checker → · Palette generator →

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