#041338#041338

#041338 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.076 H 263.1°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#041338
RGBrgb(4, 19, 56)
HSLhsl(223, 87%, 12%)
HSVhsv(223, 93%, 22%)
CMYKcmyk(92.9%, 66.1%, 0%, 78%)
CIE-LABlab(7.02, 10.22, -25.89)
CIE-LCHlch(7.02, 27.83, 291.53°)
OKLaboklab(20.18% -0.0091 -0.075)
OKLCHoklch(20.18% 0.076 263.1)
XYZxyz(0.9965, 0.7770, 3.8381)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041338 #382904
analogous
#042D38 #041338 #0F0438
triadic
#041338 #380413 #133804
tetradic
#041338 #38042D #382904 #04380F
square
#041338 #38042D #382904 #04380F
split-complementary
#041338 #380F04 #2D3804
monochromatic
#020A1D #020A1D #041338 #082671 #0C3AAA

Accessibility & contrast

On white

18.18
#041338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#041338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041338
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041338#FFFFFF#000000##FFFFFF
##0413381.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #041338;
/* rgb */ color: rgb(4, 19, 56);
/* oklch */ color: oklch(20.2% 0.076 263.1);
Tailwind
colors: {
  custom: {
    50: '#4e506f',
    500: '#041338',
    950: '#000000',
  },
}
SCSS
$custom: #041338;
$custom-light: #4e506f;
$custom-dark: #000000;
JSON
{
  "hex": "#041338",
  "rgb": {
    "r": 4,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 222.692,
    "s": 86.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20178,
    "c": 0.07556,
    "h": 263.1
  },
  "luminance": 0.00777
}

Semantic roles & 50–950 ramp

primary
#041338
secondary
#7A5F1E
accent
#C02BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #041338

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

Preview Lab → · Contrast checker → · Palette generator →

#041338 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva