#040C35#040C35

#040C35 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.2% C 0.081 H 267.0°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#040C35
RGBrgb(4, 12, 53)
HSLhsl(230, 86%, 11%)
HSVhsv(230, 92%, 21%)
CMYKcmyk(92.5%, 77.4%, 0%, 79.2%)
CIE-LABlab(4.93, 12.50, -27.08)
CIE-LCHlch(4.93, 29.82, 294.79°)
OKLaboklab(18.18% -0.0042 -0.0809)
OKLCHoklch(18.18% 0.081 267)
XYZxyz(0.8239, 0.5457, 3.4294)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C35 #352D04
analogous
#042435 #040C35 #140435
triadic
#040C35 #35040C #0C3504
tetradic
#040C35 #350424 #352D04 #043514
square
#040C35 #350424 #352D04 #043514
split-complementary
#040C35 #351404 #243504
monochromatic
#02061C #02061C #040C35 #08196E #0D26A7

Accessibility & contrast

On white

18.93
#040C35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040C35
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C35#FFFFFF#000000##FFFFFF
##040C351.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#000E34
Tritanopia (blue-blind)
#00171F
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040c35;
/* rgb */ color: rgb(4, 12, 53);
/* oklch */ color: oklch(18.2% 0.081 267.0);
Tailwind
colors: {
  custom: {
    50: '#4d4b6d',
    500: '#040c35',
    950: '#000000',
  },
}
SCSS
$custom: #040c35;
$custom-light: #4d4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040c35",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 53
  },
  "hsl": {
    "h": 230.204,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18181,
    "c": 0.08105,
    "h": 267
  },
  "luminance": 0.00546
}

Semantic roles & 50–950 ramp

primary
#040C35
secondary
#77691E
accent
#DA2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040C35

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

Preview Lab → · Contrast checker → · Palette generator →

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