#04103B#04103B

#04103B is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.085 H 265.4°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#04103B
RGBrgb(4, 16, 59)
HSLhsl(227, 87%, 12%)
HSVhsv(227, 93%, 23%)
CMYKcmyk(93.2%, 72.9%, 0%, 76.9%)
CIE-LABlab(6.43, 13.76, -29.01)
CIE-LCHlch(6.43, 32.11, 295.38°)
OKLaboklab(19.78% -0.0069 -0.0846)
OKLCHoklch(19.78% 0.085 265.4)
XYZxyz(1.0245, 0.7120, 4.2203)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04103B #3B2F04
analogous
#042C3B #04103B #13043B
triadic
#04103B #3B0410 #103B04
tetradic
#04103B #3B042C #3B2F04 #043B13
square
#04103B #3B042C #3B2F04 #043B13
split-complementary
#04103B #3B1304 #2C3B04
monochromatic
#02081D #02081D #04103B #082074 #0C2FAE

Accessibility & contrast

On white

18.38
#04103B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#04103B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04103B
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04103B#FFFFFF#000000##FFFFFF
##04103B1.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173C
Deuteranopia (green-blind)
#00123A
Tritanopia (blue-blind)
#001B23
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #04103b;
/* rgb */ color: rgb(4, 16, 59);
/* oklch */ color: oklch(19.8% 0.085 265.4);
Tailwind
colors: {
  custom: {
    50: '#4f4e71',
    500: '#04103b',
    950: '#000000',
  },
}
SCSS
$custom: #04103b;
$custom-light: #4f4e71;
$custom-dark: #000000;
JSON
{
  "hex": "#04103b",
  "rgb": {
    "r": 4,
    "g": 16,
    "b": 59
  },
  "hsl": {
    "h": 226.909,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19781,
    "c": 0.08486,
    "h": 265.4
  },
  "luminance": 0.00712
}

Semantic roles & 50–950 ramp

primary
#04103B
secondary
#7D681E
accent
#CF2AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #04103B

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

Preview Lab → · Contrast checker → · Palette generator →

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