#040F30#040F30

#040F30 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.3% C 0.068 H 264.6°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#040F30
RGBrgb(4, 15, 48)
HSLhsl(225, 85%, 10%)
HSVhsv(225, 92%, 19%)
CMYKcmyk(91.7%, 68.7%, 0%, 81.2%)
CIE-LABlab(5.25, 8.28, -22.88)
CIE-LCHlch(5.25, 24.33, 289.90°)
OKLaboklab(18.33% -0.0064 -0.068)
OKLCHoklch(18.33% 0.068 264.6)
XYZxyz(0.7542, 0.5808, 2.8681)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F30 #302504
analogous
#042530 #040F30 #0F0430
triadic
#040F30 #30040F #0F3004
tetradic
#040F30 #300425 #302504 #04300F
square
#040F30 #300425 #302504 #04300F
split-complementary
#040F30 #300F04 #253004
monochromatic
#02091C #02091C #040F30 #092168 #0D32A1

Accessibility & contrast

On white

18.81
#040F30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#040F30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F30
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F30#FFFFFF#000000##FFFFFF
##040F301.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001431
Deuteranopia (green-blind)
#000F2F
Tritanopia (blue-blind)
#00171D
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040f30;
/* rgb */ color: rgb(4, 15, 48);
/* oklch */ color: oklch(18.3% 0.068 264.6);
Tailwind
colors: {
  custom: {
    50: '#4b4d68',
    500: '#040f30',
    950: '#000000',
  },
}
SCSS
$custom: #040f30;
$custom-light: #4b4d68;
$custom-dark: #000000;
JSON
{
  "hex": "#040f30",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 48
  },
  "hsl": {
    "h": 225,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18334,
    "c": 0.06833,
    "h": 264.6
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#040F30
secondary
#725D1D
accent
#C72DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040F30

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

Preview Lab → · Contrast checker → · Palette generator →

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