#040347#040347

#040347 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.9% C 0.118 H 267.9°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#040347
RGBrgb(4, 3, 71)
HSLhsl(241, 92%, 15%)
HSVhsv(241, 96%, 28%)
CMYKcmyk(94.4%, 95.8%, 0%, 72.2%)
CIE-LABlab(4.93, 26.84, -40.03)
CIE-LCHlch(4.93, 48.20, 303.85°)
OKLaboklab(18.9% -0.0043 -0.1183)
OKLCHoklch(18.9% 0.118 267.9)
XYZxyz(1.2196, 0.5457, 6.0011)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040347 #464703
analogous
#032447 #040347 #260347
triadic
#040347 #470403 #034704
tetradic
#040347 #470324 #464703 #034726
square
#040347 #470324 #464703 #034726
split-complementary
#040347 #472603 #244703
monochromatic
#02011D #02011D #040347 #070582 #0B08BC

Accessibility & contrast

On white

18.93
#040347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040347
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040347#FFFFFF#000000##FFFFFF
##0403471.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001449
Deuteranopia (green-blind)
#000D46
Tritanopia (blue-blind)
#001A26
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040347;
/* rgb */ color: rgb(4, 3, 71);
/* oklch */ color: oklch(18.9% 0.118 267.9);
Tailwind
colors: {
  custom: {
    50: '#54467b',
    500: '#040347',
    950: '#000000',
  },
}
SCSS
$custom: #040347;
$custom-light: #54467b;
$custom-dark: #000000;
JSON
{
  "hex": "#040347",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 71
  },
  "hsl": {
    "h": 240.882,
    "s": 91.892,
    "l": 14.51
  },
  "oklch": {
    "l": 0.18898,
    "c": 0.11839,
    "h": 267.9
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#040347
secondary
#87881E
accent
#FF29FC
background
#F5F3F7
surface
#E9E5EE
border
#C5C1C9
text
#030009
muted
#78777B

Preview Lab

Preview with #040347

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

Preview Lab → · Contrast checker → · Palette generator →

#040347 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva