#040E3F#040E3F

#040E3F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.094 H 266.4°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#040E3F
RGBrgb(4, 14, 63)
HSLhsl(230, 88%, 13%)
HSVhsv(230, 94%, 25%)
CMYKcmyk(93.7%, 77.8%, 0%, 75.3%)
CIE-LABlab(6.31, 17.07, -32.08)
CIE-LCHlch(6.31, 36.34, 298.02°)
OKLaboklab(19.81% -0.006 -0.0937)
OKLCHoklch(19.81% 0.094 266.4)
XYZxyz(1.1040, 0.6986, 4.7783)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E3F #3F3504
analogous
#042B3F #040E3F #17043F
triadic
#040E3F #3F040E #0E3F04
tetradic
#040E3F #3F042B #3F3504 #043F17
square
#040E3F #3F042B #3F3504 #043F17
split-complementary
#040E3F #3F1704 #2B3F04
monochromatic
#02061D #02061D #040E3F #081B79 #0B28B2

Accessibility & contrast

On white

18.42
#040E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#040E3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E3F
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E3F#FFFFFF#000000##FFFFFF
##040E3F1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00113E
Tritanopia (blue-blind)
#001C25
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #040e3f;
/* rgb */ color: rgb(4, 14, 63);
/* oklch */ color: oklch(19.8% 0.094 266.4);
Tailwind
colors: {
  custom: {
    50: '#514c75',
    500: '#040e3f',
    950: '#000000',
  },
}
SCSS
$custom: #040e3f;
$custom-light: #514c75;
$custom-dark: #000000;
JSON
{
  "hex": "#040e3f",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 63
  },
  "hsl": {
    "h": 229.831,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19815,
    "c": 0.09385,
    "h": 266.4
  },
  "luminance": 0.00699
}

Semantic roles & 50–950 ramp

primary
#040E3F
secondary
#80701E
accent
#DA2AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #040E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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