#04103F#04103F

#04103F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.091 H 265.6°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#04103F
RGBrgb(4, 16, 63)
HSLhsl(228, 88%, 13%)
HSVhsv(228, 94%, 25%)
CMYKcmyk(93.7%, 74.6%, 0%, 75.3%)
CIE-LABlab(6.82, 15.83, -31.25)
CIE-LCHlch(6.82, 35.02, 296.86°)
OKLaboklab(20.24% -0.007 -0.0908)
OKLCHoklch(20.24% 0.091 265.6)
XYZxyz(1.1322, 0.7551, 4.7877)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04103F #3F3304
analogous
#042D3F #04103F #15043F
triadic
#04103F #3F0410 #103F04
tetradic
#04103F #3F042D #3F3304 #043F15
square
#04103F #3F042D #3F3304 #043F15
split-complementary
#04103F #3F1504 #2D3F04
monochromatic
#02071D #02071D #04103F #081F79 #0B2DB2

Accessibility & contrast

On white

18.25
#04103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#04103F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04103F
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04103F#FFFFFF#000000##FFFFFF
##04103F1.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001840
Deuteranopia (green-blind)
#00123E
Tritanopia (blue-blind)
#001D25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #04103f;
/* rgb */ color: rgb(4, 16, 63);
/* oklch */ color: oklch(20.2% 0.091 265.6);
Tailwind
colors: {
  custom: {
    50: '#514d75',
    500: '#04103f',
    950: '#000000',
  },
}
SCSS
$custom: #04103f;
$custom-light: #514d75;
$custom-dark: #000000;
JSON
{
  "hex": "#04103f",
  "rgb": {
    "r": 4,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 227.797,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20241,
    "c": 0.09112,
    "h": 265.6
  },
  "luminance": 0.00755
}

Semantic roles & 50–950 ramp

primary
#04103F
secondary
#806C1E
accent
#D32AFE
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020108
muted
#78777B

Preview Lab

Preview with #04103F

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

Preview Lab → · Contrast checker → · Palette generator →

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