#041540#041540

#041540 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.086 H 263.3°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#041540
RGBrgb(4, 21, 64)
HSLhsl(223, 88%, 13%)
HSVhsv(223, 94%, 25%)
CMYKcmyk(93.8%, 67.2%, 0%, 74.9%)
CIE-LABlab(8.41, 12.58, -29.36)
CIE-LCHlch(8.41, 31.94, 293.20°)
OKLaboklab(21.5% -0.01 -0.0849)
OKLCHoklch(21.5% 0.086 263.3)
XYZxyz(1.2433, 0.9322, 4.9639)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041540 #402F04
analogous
#043340 #041540 #110440
triadic
#041540 #400415 #154004
tetradic
#041540 #400433 #402F04 #044011
square
#041540 #400433 #402F04 #044011
split-complementary
#041540 #401104 #334004
monochromatic
#02091D #02091D #041540 #08287A #0B3BB3

Accessibility & contrast

On white

17.70
#041540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#041540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041540
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041540#FFFFFF#000000##FFFFFF
##0415401.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #041540;
/* rgb */ color: rgb(4, 21, 64);
/* oklch */ color: oklch(21.5% 0.086 263.3);
Tailwind
colors: {
  custom: {
    50: '#515175',
    500: '#041540',
    950: '#000000',
  },
}
SCSS
$custom: #041540;
$custom-light: #515175;
$custom-dark: #000000;
JSON
{
  "hex": "#041540",
  "rgb": {
    "r": 4,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 223,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21503,
    "c": 0.08551,
    "h": 263.3
  },
  "luminance": 0.00932
}

Semantic roles & 50–950 ramp

primary
#041540
secondary
#81651F
accent
#C229FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041540

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

Preview Lab → · Contrast checker → · Palette generator →

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