#041128#041128

#041128 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.1% C 0.051 H 259.2°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#041128
RGBrgb(4, 17, 40)
HSLhsl(218, 82%, 9%)
HSVhsv(218, 90%, 16%)
CMYKcmyk(90%, 57.5%, 0%, 84.3%)
CIE-LABlab(5.24, 3.37, -16.90)
CIE-LCHlch(5.24, 17.23, 281.29°)
OKLaboklab(18.1% -0.0096 -0.0504)
OKLCHoklch(18.1% 0.051 259.2)
XYZxyz(0.6334, 0.5798, 2.0856)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041128 #281B04
analogous
#042328 #041128 #090428
triadic
#041128 #280411 #112804
tetradic
#041128 #280423 #281B04 #042809
square
#041128 #280423 #281B04 #042809
split-complementary
#041128 #280904 #232804
monochromatic
#030C1C #030C1C #041128 #0A2960 #0F4097

Accessibility & contrast

On white

18.82
#041128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#041128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041128
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041128#FFFFFF#000000##FFFFFF
##0411281.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061329
Deuteranopia (green-blind)
#011028
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #041128;
/* rgb */ color: rgb(4, 17, 40);
/* oklch */ color: oklch(18.1% 0.051 259.2);
Tailwind
colors: {
  custom: {
    50: '#494f62',
    500: '#041128',
    950: '#000000',
  },
}
SCSS
$custom: #041128;
$custom-light: #494f62;
$custom-dark: #000000;
JSON
{
  "hex": "#041128",
  "rgb": {
    "r": 4,
    "g": 17,
    "b": 40
  },
  "hsl": {
    "h": 218.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18097,
    "c": 0.0513,
    "h": 259.2
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#041128
secondary
#6B4F1D
accent
#B030F8
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #041128

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

Preview Lab → · Contrast checker → · Palette generator →

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