#04083F#04083F

#04083F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.7% C 0.101 H 267.9°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#04083F
RGBrgb(4, 8, 63)
HSLhsl(236, 88%, 13%)
HSVhsv(236, 94%, 25%)
CMYKcmyk(93.7%, 87.3%, 0%, 75.3%)
CIE-LABlab(5.04, 20.08, -34.15)
CIE-LCHlch(5.04, 39.62, 300.46°)
OKLaboklab(18.67% -0.0037 -0.1013)
OKLCHoklch(18.67% 0.101 267.9)
XYZxyz(1.0338, 0.5582, 4.7549)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04083F #3F3B04
analogous
#04253F #04083F #1D043F
triadic
#04083F #3F0408 #083F04
tetradic
#04083F #3F0425 #3F3B04 #043F1D
square
#04083F #3F0425 #3F3B04 #043F1D
split-complementary
#04083F #3F1D04 #253F04
monochromatic
#02041D #02041D #04083F #080F79 #0B17B2

Accessibility & contrast

On white

18.89
#04083F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#04083F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04083F
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04083F#FFFFFF#000000##FFFFFF
##04083F1.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001441
Deuteranopia (green-blind)
#000E3E
Tritanopia (blue-blind)
#001923
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #04083f;
/* rgb */ color: rgb(4, 8, 63);
/* oklch */ color: oklch(18.7% 0.101 267.9);
Tailwind
colors: {
  custom: {
    50: '#514975',
    500: '#04083f',
    950: '#000000',
  },
}
SCSS
$custom: #04083f;
$custom-light: #514975;
$custom-dark: #000000;
JSON
{
  "hex": "#04083f",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 63
  },
  "hsl": {
    "h": 235.932,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18668,
    "c": 0.10137,
    "h": 267.9
  },
  "luminance": 0.00558
}

Semantic roles & 50–950 ramp

primary
#04083F
secondary
#807A1E
accent
#F02AFE
background
#F4F4F7
surface
#E7E6ED
border
#C3C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #04083F

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

Preview Lab → · Contrast checker → · Palette generator →

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