#041F47#041F47

#041F47 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.7% C 0.082 H 258.3°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#041F47
RGBrgb(4, 31, 71)
HSLhsl(216, 89%, 15%)
HSVhsv(216, 94%, 28%)
CMYKcmyk(94.4%, 56.3%, 0%, 72.2%)
CIE-LABlab(12.35, 7.95, -27.86)
CIE-LCHlch(12.35, 28.98, 285.92°)
OKLaboklab(24.69% -0.0166 -0.0803)
OKLCHoklch(24.69% 0.082 258.3)
XYZxyz(1.6770, 1.4605, 6.1535)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041F47 #472C04
analogous
#044147 #041F47 #0B0447
triadic
#041F47 #47041F #1F4704
tetradic
#041F47 #470441 #472C04 #04470B
square
#041F47 #470441 #472C04 #04470B
split-complementary
#041F47 #470B04 #414704
monochromatic
#020D1D #020D1D #041F47 #073881 #0B52BB

Accessibility & contrast

On white

16.25
#041F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#041F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041F47
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041F47#FFFFFF#000000##FFFFFF
##041F471.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062348
Deuteranopia (green-blind)
#001D46
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #041f47;
/* rgb */ color: rgb(4, 31, 71);
/* oklch */ color: oklch(24.7% 0.082 258.3);
Tailwind
colors: {
  custom: {
    50: '#525a7a',
    500: '#041f47',
    950: '#000000',
  },
}
SCSS
$custom: #041f47;
$custom-light: #525a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#041f47",
  "rgb": {
    "r": 4,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 215.821,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24693,
    "c": 0.082,
    "h": 258.3
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#041F47
secondary
#885E1F
accent
#A929FF
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #041F47

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

Preview Lab → · Contrast checker → · Palette generator →

#041F47 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva