#04102A#04102A

#04102A is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.0% C 0.056 H 261.7°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#04102A
RGBrgb(4, 16, 42)
HSLhsl(221, 83%, 9%)
HSVhsv(221, 90%, 16%)
CMYKcmyk(90.5%, 61.9%, 0%, 83.5%)
CIE-LABlab(5.09, 4.81, -18.64)
CIE-LCHlch(5.09, 19.25, 284.48°)
OKLaboklab(18% -0.0081 -0.0558)
OKLCHoklch(18% 0.056 261.7)
XYZxyz(0.6531, 0.5635, 2.2644)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04102A #2A1E04
analogous
#04232A #04102A #0B042A
triadic
#04102A #2A0410 #102A04
tetradic
#04102A #2A0423 #2A1E04 #042A0B
square
#04102A #2A0423 #2A1E04 #042A0B
split-complementary
#04102A #2A0B04 #232A04
monochromatic
#030B1C #030B1C #04102A #092562 #0F3B9A

Accessibility & contrast

On white

18.87
#04102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04102A
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04102A#FFFFFF#000000##FFFFFF
##04102A1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03132B
Deuteranopia (green-blind)
#000F29
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #04102a;
/* rgb */ color: rgb(4, 16, 42);
/* oklch */ color: oklch(18.0% 0.056 261.7);
Tailwind
colors: {
  custom: {
    50: '#494e63',
    500: '#04102a',
    950: '#000000',
  },
}
SCSS
$custom: #04102a;
$custom-light: #494e63;
$custom-dark: #000000;
JSON
{
  "hex": "#04102a",
  "rgb": {
    "r": 4,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 221.053,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17999,
    "c": 0.05639,
    "h": 261.7
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#04102A
secondary
#6D541D
accent
#B92FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #04102A

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

Preview Lab → · Contrast checker → · Palette generator →

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