#040341#040341

#040341 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.111 H 268.5°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#040341
RGBrgb(4, 3, 65)
HSLhsl(241, 91%, 13%)
HSVhsv(241, 95%, 25%)
CMYKcmyk(93.8%, 95.4%, 0%, 74.5%)
CIE-LABlab(4.27, 23.51, -36.85)
CIE-LCHlch(4.27, 43.71, 302.54°)
OKLaboklab(17.98% -0.0028 -0.1106)
OKLCHoklch(17.98% 0.111 268.5)
XYZxyz(1.0364, 0.4725, 5.0366)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040341 #404103
analogous
#032141 #040341 #230341
triadic
#040341 #410403 #034104
tetradic
#040341 #410321 #404103 #034123
square
#040341 #410321 #404103 #034123
split-complementary
#040341 #412303 #214103
monochromatic
#02011D #02011D #040341 #08067B #0B08B6

Accessibility & contrast

On white

19.19
#040341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040341
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040341#FFFFFF#000000##FFFFFF
##0403411.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001243
Deuteranopia (green-blind)
#000B40
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040341;
/* rgb */ color: rgb(4, 3, 65);
/* oklch */ color: oklch(18.0% 0.111 268.5);
Tailwind
colors: {
  custom: {
    50: '#524676',
    500: '#040341',
    950: '#000000',
  },
}
SCSS
$custom: #040341;
$custom-light: #524676;
$custom-dark: #000000;
JSON
{
  "hex": "#040341",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 65
  },
  "hsl": {
    "h": 240.968,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.17978,
    "c": 0.11066,
    "h": 268.5
  },
  "luminance": 0.00473
}

Semantic roles & 50–950 ramp

primary
#040341
secondary
#81831D
accent
#FF29FC
background
#F5F3F7
surface
#E9E5ED
border
#C5C1C8
text
#030009
muted
#78777B

Preview Lab

Preview with #040341

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

Preview Lab → · Contrast checker → · Palette generator →

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