#040A41#040A41

#040A41 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.3% C 0.102 H 267.4°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#040A41
RGBrgb(4, 10, 65)
HSLhsl(234, 88%, 14%)
HSVhsv(234, 94%, 25%)
CMYKcmyk(93.8%, 84.6%, 0%, 74.5%)
CIE-LABlab(5.64, 20.24, -34.60)
CIE-LCHlch(5.64, 40.09, 300.33°)
OKLaboklab(19.3% -0.0046 -0.1017)
OKLCHoklch(19.3% 0.102 267.4)
XYZxyz(1.1124, 0.6244, 5.0619)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A41 #413B04
analogous
#042841 #040A41 #1C0441
triadic
#040A41 #41040A #0A4104
tetradic
#040A41 #410428 #413B04 #04411C
square
#040A41 #410428 #413B04 #04411C
split-complementary
#040A41 #411C04 #284104
monochromatic
#02041D #02041D #040A41 #08137B #0B1CB4

Accessibility & contrast

On white

18.67
#040A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#040A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A41
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A41#FFFFFF#000000##FFFFFF
##040A411.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#000F40
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040a41;
/* rgb */ color: rgb(4, 10, 65);
/* oklch */ color: oklch(19.3% 0.102 267.4);
Tailwind
colors: {
  custom: {
    50: '#524a76',
    500: '#040a41',
    950: '#000000',
  },
}
SCSS
$custom: #040a41;
$custom-light: #524a76;
$custom-dark: #000000;
JSON
{
  "hex": "#040a41",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 65
  },
  "hsl": {
    "h": 234.098,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19302,
    "c": 0.10181,
    "h": 267.4
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#040A41
secondary
#82781F
accent
#EA29FF
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #040A41

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

Preview Lab → · Contrast checker → · Palette generator →

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