#040E46#040E46

#040E46 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.104 H 266.4°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#040E46
RGBrgb(4, 14, 70)
HSLhsl(231, 89%, 15%)
HSVhsv(231, 94%, 27%)
CMYKcmyk(94.3%, 80%, 0%, 72.5%)
CIE-LABlab(7.06, 20.54, -35.81)
CIE-LCHlch(7.06, 41.28, 299.84°)
OKLaboklab(20.68% -0.0066 -0.104)
OKLCHoklch(20.68% 0.104 266.4)
XYZxyz(1.3122, 0.7819, 5.8749)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E46 #463C04
analogous
#042F46 #040E46 #1B0446
triadic
#040E46 #46040E #0E4604
tetradic
#040E46 #46042F #463C04 #04461B
square
#040E46 #46042F #463C04 #04461B
split-complementary
#040E46 #461B04 #2F4604
monochromatic
#02061D #02061D #040E46 #071A80 #0B25BA

Accessibility & contrast

On white

18.16
#040E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#040E46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E46
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E46#FFFFFF#000000##FFFFFF
##040E461.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001245
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #040e46;
/* rgb */ color: rgb(4, 14, 70);
/* oklch */ color: oklch(20.7% 0.104 266.4);
Tailwind
colors: {
  custom: {
    50: '#544c7a',
    500: '#040e46',
    950: '#000000',
  },
}
SCSS
$custom: #040e46;
$custom-light: #544c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#040e46",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 70
  },
  "hsl": {
    "h": 230.909,
    "s": 89.189,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20684,
    "c": 0.10425,
    "h": 266.4
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#040E46
secondary
#87771F
accent
#DF29FF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #040E46

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

Preview Lab → · Contrast checker → · Palette generator →

#040E46 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva