#04102B#04102B

#04102B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.1% C 0.058 H 262.2°. Best body text is #FFFFFF at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#04102B
RGBrgb(4, 16, 43)
HSLhsl(222, 83%, 9%)
HSVhsv(222, 91%, 17%)
CMYKcmyk(90.7%, 62.8%, 0%, 83.1%)
CIE-LABlab(5.16, 5.27, -19.29)
CIE-LCHlch(5.16, 20.00, 285.30°)
OKLaboklab(18.09% -0.0079 -0.0576)
OKLCHoklch(18.09% 0.058 262.2)
XYZxyz(0.6712, 0.5707, 2.3598)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04102B #2B1F04
analogous
#04242B #04102B #0C042B
triadic
#04102B #2B0410 #102B04
tetradic
#04102B #2B0424 #2B1F04 #042B0C
square
#04102B #2B0424 #2B1F04 #042B0C
split-complementary
#04102B #2B0C04 #242B04
monochromatic
#030A1C #030A1C #04102B #092563 #0E3A9B

Accessibility & contrast

On white

18.85
#04102B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#04102B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04102B
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04102B#FFFFFF#000000##FFFFFF
##04102B1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132C
Deuteranopia (green-blind)
#000F2A
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #04102b;
/* rgb */ color: rgb(4, 16, 43);
/* oklch */ color: oklch(18.1% 0.058 262.2);
Tailwind
colors: {
  custom: {
    50: '#494e64',
    500: '#04102b',
    950: '#000000',
  },
}
SCSS
$custom: #04102b;
$custom-light: #494e64;
$custom-dark: #000000;
JSON
{
  "hex": "#04102b",
  "rgb": {
    "r": 4,
    "g": 16,
    "b": 43
  },
  "hsl": {
    "h": 221.538,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18094,
    "c": 0.05814,
    "h": 262.2
  },
  "luminance": 0.00571
}

Semantic roles & 50–950 ramp

primary
#04102B
secondary
#6E551D
accent
#BB2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04102B

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

Preview Lab → · Contrast checker → · Palette generator →

#04102B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva