#041040#041040

#041040 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.093 H 265.7°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#041040
RGBrgb(4, 16, 64)
HSLhsl(228, 88%, 13%)
HSVhsv(228, 94%, 25%)
CMYKcmyk(93.8%, 75%, 0%, 74.9%)
CIE-LABlab(6.92, 16.33, -31.79)
CIE-LCHlch(6.92, 35.74, 297.18°)
OKLaboklab(20.36% -0.007 -0.0924)
OKLCHoklch(20.36% 0.093 265.7)
XYZxyz(1.1604, 0.7664, 4.9363)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041040 #403404
analogous
#042E40 #041040 #160440
triadic
#041040 #400410 #104004
tetradic
#041040 #40042E #403404 #044016
square
#041040 #40042E #403404 #044016
split-complementary
#041040 #401604 #2E4004
monochromatic
#02071D #02071D #041040 #081E7A #0B2DB3

Accessibility & contrast

On white

18.21
#041040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#041040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041040
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041040#FFFFFF#000000##FFFFFF
##0410401.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #041040;
/* rgb */ color: rgb(4, 16, 64);
/* oklch */ color: oklch(20.4% 0.093 265.7);
Tailwind
colors: {
  custom: {
    50: '#514d75',
    500: '#041040',
    950: '#000000',
  },
}
SCSS
$custom: #041040;
$custom-light: #514d75;
$custom-dark: #000000;
JSON
{
  "hex": "#041040",
  "rgb": {
    "r": 4,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 228,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20358,
    "c": 0.09265,
    "h": 265.7
  },
  "luminance": 0.00767
}

Semantic roles & 50–950 ramp

primary
#041040
secondary
#816E1F
accent
#D429FE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #041040

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

Preview Lab → · Contrast checker → · Palette generator →

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