#041340#041340

#041340 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.0% C 0.088 H 264.4°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#041340
RGBrgb(4, 19, 64)
HSLhsl(225, 88%, 13%)
HSVhsv(225, 94%, 25%)
CMYKcmyk(93.8%, 70.3%, 0%, 74.9%)
CIE-LABlab(7.78, 14.17, -30.39)
CIE-LCHlch(7.78, 33.53, 295.01°)
OKLaboklab(21.03% -0.0087 -0.088)
OKLCHoklch(21.03% 0.088 264.4)
XYZxyz(1.2080, 0.8616, 4.9521)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041340 #403104
analogous
#043140 #041340 #130440
triadic
#041340 #400413 #134004
tetradic
#041340 #400431 #403104 #044013
square
#041340 #400431 #403104 #044013
split-complementary
#041340 #401304 #314004
monochromatic
#02091D #02091D #041340 #08247A #0B35B3

Accessibility & contrast

On white

17.91
#041340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#041340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041340
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041340#FFFFFF#000000##FFFFFF
##0413401.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #041340;
/* rgb */ color: rgb(4, 19, 64);
/* oklch */ color: oklch(21.0% 0.088 264.4);
Tailwind
colors: {
  custom: {
    50: '#515075',
    500: '#041340',
    950: '#000000',
  },
}
SCSS
$custom: #041340;
$custom-light: #515075;
$custom-dark: #000000;
JSON
{
  "hex": "#041340",
  "rgb": {
    "r": 4,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 225,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21031,
    "c": 0.08842,
    "h": 264.4
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#041340
secondary
#81691F
accent
#C929FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #041340

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

Preview Lab → · Contrast checker → · Palette generator →

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