#040346#040346

#040346 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.7% C 0.117 H 268.0°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#040346
RGBrgb(4, 3, 70)
HSLhsl(241, 92%, 14%)
HSVhsv(241, 96%, 27%)
CMYKcmyk(94.3%, 95.7%, 0%, 72.5%)
CIE-LABlab(4.81, 26.31, -39.51)
CIE-LCHlch(4.81, 47.47, 303.66°)
OKLaboklab(18.74% -0.0041 -0.117)
OKLCHoklch(18.74% 0.117 268)
XYZxyz(1.1877, 0.5330, 5.8334)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040346 #454603
analogous
#032446 #040346 #260346
triadic
#040346 #460403 #034604
tetradic
#040346 #460324 #454603 #034626
square
#040346 #460324 #454603 #034626
split-complementary
#040346 #462603 #244603
monochromatic
#02011D #02011D #040346 #070681 #0B08BB

Accessibility & contrast

On white

18.98
#040346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040346
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040346#FFFFFF#000000##FFFFFF
##0403461.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001448
Deuteranopia (green-blind)
#000D45
Tritanopia (blue-blind)
#001926
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040346;
/* rgb */ color: rgb(4, 3, 70);
/* oklch */ color: oklch(18.7% 0.117 268.0);
Tailwind
colors: {
  custom: {
    50: '#54467a',
    500: '#040346',
    950: '#000000',
  },
}
SCSS
$custom: #040346;
$custom-light: #54467a;
$custom-dark: #000000;
JSON
{
  "hex": "#040346",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 240.896,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.18744,
    "c": 0.11711,
    "h": 268
  },
  "luminance": 0.00533
}

Semantic roles & 50–950 ramp

primary
#040346
secondary
#86871D
accent
#FF29FC
background
#F5F3F7
surface
#E9E5EE
border
#C5C1C9
text
#030009
muted
#78777B

Preview Lab

Preview with #040346

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

Preview Lab → · Contrast checker → · Palette generator →

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