#040641#040641

#040641 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.6% C 0.107 H 268.1°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#040641
RGBrgb(4, 6, 65)
HSLhsl(238, 88%, 14%)
HSVhsv(238, 94%, 25%)
CMYKcmyk(93.8%, 90.8%, 0%, 74.5%)
CIE-LABlab(4.86, 22.13, -35.89)
CIE-LCHlch(4.86, 42.16, 301.66°)
OKLaboklab(18.57% -0.0035 -0.1066)
OKLCHoklch(18.57% 0.107 268.1)
XYZxyz(1.0690, 0.5376, 5.0474)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040641 #413F04
analogous
#042441 #040641 #200441
triadic
#040641 #410406 #064104
tetradic
#040641 #410424 #413F04 #044120
square
#040641 #410424 #413F04 #044120
split-complementary
#040641 #412004 #244104
monochromatic
#02031D #02031D #040641 #080B7B #0B11B4

Accessibility & contrast

On white

18.96
#040641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040641
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040641#FFFFFF#000000##FFFFFF
##0406411.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001443
Deuteranopia (green-blind)
#000D40
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040641;
/* rgb */ color: rgb(4, 6, 65);
/* oklch */ color: oklch(18.6% 0.107 268.1);
Tailwind
colors: {
  custom: {
    50: '#524876',
    500: '#040641',
    950: '#000000',
  },
}
SCSS
$custom: #040641;
$custom-light: #524876;
$custom-dark: #000000;
JSON
{
  "hex": "#040641",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 238.033,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18569,
    "c": 0.10669,
    "h": 268.1
  },
  "luminance": 0.00538
}

Semantic roles & 50–950 ramp

primary
#040641
secondary
#827F1F
accent
#F829FF
background
#F5F4F7
surface
#E8E6ED
border
#C4C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #040641

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

Preview Lab → · Contrast checker → · Palette generator →

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