#040B30#040B30

#040B30 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.4% C 0.074 H 267.4°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#040B30
RGBrgb(4, 11, 48)
HSLhsl(230, 85%, 10%)
HSVhsv(230, 92%, 19%)
CMYKcmyk(91.7%, 77.1%, 0%, 81.2%)
CIE-LABlab(4.32, 10.17, -24.35)
CIE-LCHlch(4.32, 26.39, 292.67°)
OKLaboklab(17.36% -0.0033 -0.0743)
OKLCHoklch(17.36% 0.074 267.4)
XYZxyz(0.7031, 0.4785, 2.8510)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B30 #302904
analogous
#042130 #040B30 #130430
triadic
#040B30 #30040B #0B3004
tetradic
#040B30 #300421 #302904 #043013
square
#040B30 #300421 #302904 #043013
split-complementary
#040B30 #301304 #213004
monochromatic
#02061C #02061C #040B30 #091868 #0D25A1

Accessibility & contrast

On white

19.16
#040B30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B30
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B30#FFFFFF#000000##FFFFFF
##040B301.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001131
Deuteranopia (green-blind)
#000D2F
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040b30;
/* rgb */ color: rgb(4, 11, 48);
/* oklch */ color: oklch(17.4% 0.074 267.4);
Tailwind
colors: {
  custom: {
    50: '#4b4b68',
    500: '#040b30',
    950: '#000000',
  },
}
SCSS
$custom: #040b30;
$custom-light: #4b4b68;
$custom-dark: #000000;
JSON
{
  "hex": "#040b30",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 48
  },
  "hsl": {
    "h": 230.455,
    "s": 84.615,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17363,
    "c": 0.07441,
    "h": 267.4
  },
  "luminance": 0.00479
}

Semantic roles & 50–950 ramp

primary
#040B30
secondary
#72651D
accent
#DA2DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B30

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

Preview Lab → · Contrast checker → · Palette generator →

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