#040C30#040C30

#040C30 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.073 H 266.8°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#040C30
RGBrgb(4, 12, 48)
HSLhsl(229, 85%, 10%)
HSVhsv(229, 92%, 19%)
CMYKcmyk(91.7%, 75%, 0%, 81.2%)
CIE-LABlab(4.54, 9.74, -24.01)
CIE-LCHlch(4.54, 25.91, 292.07°)
OKLaboklab(17.6% -0.0041 -0.0728)
OKLCHoklch(17.6% 0.073 266.8)
XYZxyz(0.7149, 0.5021, 2.8550)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C30 #302804
analogous
#042230 #040C30 #120430
triadic
#040C30 #30040C #0C3004
tetradic
#040C30 #300422 #302804 #043012
square
#040C30 #300422 #302804 #043012
split-complementary
#040C30 #301204 #223004
monochromatic
#02071C #02071C #040C30 #091A68 #0D28A1

Accessibility & contrast

On white

19.08
#040C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040C30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C30
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C30#FFFFFF#000000##FFFFFF
##040C301.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040c30;
/* rgb */ color: rgb(4, 12, 48);
/* oklch */ color: oklch(17.6% 0.073 266.8);
Tailwind
colors: {
  custom: {
    50: '#4b4c68',
    500: '#040c30',
    950: '#000000',
  },
}
SCSS
$custom: #040c30;
$custom-light: #4b4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#040c30",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 229.091,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17597,
    "c": 0.07292,
    "h": 266.8
  },
  "luminance": 0.00502
}

Semantic roles & 50–950 ramp

primary
#040C30
secondary
#72631D
accent
#D52DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040C30

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

Preview Lab → · Contrast checker → · Palette generator →

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