#040D30#040D30

#040D30 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.071 H 266.1°. Best body text is #FFFFFF at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#040D30
RGBrgb(4, 13, 48)
HSLhsl(228, 85%, 10%)
HSVhsv(228, 92%, 19%)
CMYKcmyk(91.7%, 72.9%, 0%, 81.2%)
CIE-LABlab(4.76, 9.27, -23.65)
CIE-LCHlch(4.76, 25.41, 291.41°)
OKLaboklab(17.84% -0.0048 -0.0712)
OKLCHoklch(17.84% 0.071 266.1)
XYZxyz(0.7273, 0.5270, 2.8591)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D30 #302704
analogous
#042330 #040D30 #110430
triadic
#040D30 #30040D #0D3004
tetradic
#040D30 #300423 #302704 #043011
square
#040D30 #300423 #302704 #043011
split-complementary
#040D30 #301104 #233004
monochromatic
#02081C #02081C #040D30 #091C68 #0D2CA1

Accessibility & contrast

On white

19.00
#040D30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040D30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D30
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D30#FFFFFF#000000##FFFFFF
##040D301.0019.001.1119.00
#FFFFFF19.001.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF19.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001231
Deuteranopia (green-blind)
#000E2F
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040d30;
/* rgb */ color: rgb(4, 13, 48);
/* oklch */ color: oklch(17.8% 0.071 266.1);
Tailwind
colors: {
  custom: {
    50: '#4b4c68',
    500: '#040d30',
    950: '#000000',
  },
}
SCSS
$custom: #040d30;
$custom-light: #4b4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#040d30",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 48
  },
  "hsl": {
    "h": 227.727,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17837,
    "c": 0.07141,
    "h": 266.1
  },
  "luminance": 0.00527
}

Semantic roles & 50–950 ramp

primary
#040D30
secondary
#72611D
accent
#D12DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040D30

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

Preview Lab → · Contrast checker → · Palette generator →

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