#041740#041740

#041740 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.083 H 262.1°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#041740
RGBrgb(4, 23, 64)
HSLhsl(221, 88%, 13%)
HSVhsv(221, 94%, 25%)
CMYKcmyk(93.8%, 64.1%, 0%, 74.9%)
CIE-LABlab(9.06, 10.97, -28.30)
CIE-LCHlch(9.06, 30.35, 291.20°)
OKLaboklab(21.99% -0.0114 -0.0818)
OKLCHoklch(21.99% 0.083 262.1)
XYZxyz(1.2815, 1.0086, 4.9766)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041740 #402D04
analogous
#043540 #041740 #0F0440
triadic
#041740 #400417 #174004
tetradic
#041740 #400435 #402D04 #04400F
square
#041740 #400435 #402D04 #04400F
split-complementary
#041740 #400F04 #354004
monochromatic
#020A1D #020A1D #041740 #082C7A #0B40B3

Accessibility & contrast

On white

17.47
#041740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#041740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041740
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041740#FFFFFF#000000##FFFFFF
##0417401.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #041740;
/* rgb */ color: rgb(4, 23, 64);
/* oklch */ color: oklch(22.0% 0.083 262.1);
Tailwind
colors: {
  custom: {
    50: '#505375',
    500: '#041740',
    950: '#000000',
  },
}
SCSS
$custom: #041740;
$custom-light: #505375;
$custom-dark: #000000;
JSON
{
  "hex": "#041740",
  "rgb": {
    "r": 4,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 221,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21992,
    "c": 0.08256,
    "h": 262.1
  },
  "luminance": 0.01009
}

Semantic roles & 50–950 ramp

primary
#041740
secondary
#81621F
accent
#BB29FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041740

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

Preview Lab → · Contrast checker → · Palette generator →

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