#04030F#04030F

#04030F is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.1% C 0.032 H 285.7°. Best body text is #FFFFFF at 20.49:1 contrast (WCAG AA passes).

Color values

HEX#04030F
RGBrgb(4, 3, 15)
HSLhsl(245, 67%, 4%)
HSVhsv(245, 80%, 6%)
CMYKcmyk(73.3%, 80%, 0%, 94.1%)
CIE-LABlab(1.13, 2.03, -4.73)
CIE-LCHlch(1.13, 5.15, 293.25°)
OKLaboklab(11.05% 0.0087 -0.0311)
OKLCHoklch(11.05% 0.032 285.7)
XYZxyz(0.1688, 0.1254, 0.4672)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04030F #0E0F03
analogous
#03080F #04030F #0A030F
triadic
#04030F #0F0403 #030F04
tetradic
#04030F #0F0308 #0E0F03 #030F0A
square
#04030F #0F0308 #0E0F03 #030F0A
split-complementary
#04030F #0F0A03 #080F03
monochromatic
#07051A #07051A #07051A #120D42 #1F1775

Accessibility & contrast

On white

20.49
#04030F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#04030F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04030F
20.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04030F#FFFFFF#000000##FFFFFF
##04030F1.0020.491.0220.49
#FFFFFF20.491.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01040F
Deuteranopia (green-blind)
#00040F
Tritanopia (blue-blind)
#020507
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #04030f;
/* rgb */ color: rgb(4, 3, 15);
/* oklch */ color: oklch(11.1% 0.032 285.7);
Tailwind
colors: {
  custom: {
    50: '#48484e',
    500: '#04030f',
    950: '#000000',
  },
}
SCSS
$custom: #04030f;
$custom-light: #48484e;
$custom-dark: #000000;
JSON
{
  "hex": "#04030f",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 15
  },
  "hsl": {
    "h": 245,
    "s": 66.667,
    "l": 3.529
  },
  "oklch": {
    "l": 0.11054,
    "c": 0.03234,
    "h": 285.7
  },
  "luminance": 0.00125
}

Semantic roles & 50–950 ramp

primary
#04030F
secondary
#4C511D
accent
#EA3EDB
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000001
muted
#777777

Preview Lab

Preview with #04030F

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

Preview Lab → · Contrast checker → · Palette generator →

#04030F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva