#041241#041241

#041241 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.091 H 264.9°. Best body text is #FFFFFF at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#041241
RGBrgb(4, 18, 65)
HSLhsl(226, 88%, 14%)
HSVhsv(226, 94%, 25%)
CMYKcmyk(93.8%, 72.3%, 0%, 74.5%)
CIE-LABlab(7.59, 15.41, -31.42)
CIE-LCHlch(7.59, 34.99, 296.13°)
OKLaboklab(20.91% -0.0081 -0.0911)
OKLCHoklch(20.91% 0.091 264.9)
XYZxyz(1.2202, 0.8399, 5.0978)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041241 #413304
analogous
#043041 #041241 #140441
triadic
#041241 #410412 #124104
tetradic
#041241 #410430 #413304 #044114
square
#041241 #410430 #413304 #044114
split-complementary
#041241 #411404 #304104
monochromatic
#02081D #02081D #041241 #08227B #0B32B4

Accessibility & contrast

On white

17.98
#041241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041241
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041241#FFFFFF#000000##FFFFFF
##0412411.0017.981.1717.98
#FFFFFF17.981.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #041241;
/* rgb */ color: rgb(4, 18, 65);
/* oklch */ color: oklch(20.9% 0.091 264.9);
Tailwind
colors: {
  custom: {
    50: '#514f76',
    500: '#041241',
    950: '#000000',
  },
}
SCSS
$custom: #041241;
$custom-light: #514f76;
$custom-dark: #000000;
JSON
{
  "hex": "#041241",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 226.23,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20914,
    "c": 0.09141,
    "h": 264.9
  },
  "luminance": 0.0084
}

Semantic roles & 50–950 ramp

primary
#041241
secondary
#826B1F
accent
#CE29FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #041241

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

Preview Lab → · Contrast checker → · Palette generator →

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