#04102D#04102D

#04102D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.3% C 0.062 H 262.9°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#04102D
RGBrgb(4, 16, 45)
HSLhsl(222, 84%, 10%)
HSVhsv(222, 91%, 18%)
CMYKcmyk(91.1%, 64.4%, 0%, 82.4%)
CIE-LABlab(5.29, 6.23, -20.57)
CIE-LCHlch(5.29, 21.49, 286.84°)
OKLaboklab(18.29% -0.0076 -0.0611)
OKLCHoklch(18.29% 0.062 262.9)
XYZxyz(0.7088, 0.5858, 2.5578)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04102D #2D2104
analogous
#04252D #04102D #0D042D
triadic
#04102D #2D0410 #102D04
tetradic
#04102D #2D0425 #2D2104 #042D0D
square
#04102D #2D0425 #2D2104 #042D0D
split-complementary
#04102D #2D0D04 #252D04
monochromatic
#020A1C #020A1C #04102D #092465 #0E389D

Accessibility & contrast

On white

18.80
#04102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#04102D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04102D
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04102D#FFFFFF#000000##FFFFFF
##04102D1.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #04102d;
/* rgb */ color: rgb(4, 16, 45);
/* oklch */ color: oklch(18.3% 0.062 262.9);
Tailwind
colors: {
  custom: {
    50: '#4a4e66',
    500: '#04102d',
    950: '#000000',
  },
}
SCSS
$custom: #04102d;
$custom-light: #4a4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#04102d",
  "rgb": {
    "r": 4,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 222.439,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18289,
    "c": 0.06163,
    "h": 262.9
  },
  "luminance": 0.00586
}

Semantic roles & 50–950 ramp

primary
#04102D
secondary
#70571D
accent
#BE2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04102D

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

Preview Lab → · Contrast checker → · Palette generator →

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