#041834#041834

#041834 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.061 H 256.7°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#041834
RGBrgb(4, 24, 52)
HSLhsl(215, 86%, 11%)
HSVhsv(215, 92%, 20%)
CMYKcmyk(92.3%, 53.8%, 0%, 79.6%)
CIE-LABlab(8.37, 4.40, -20.81)
CIE-LCHlch(8.37, 21.27, 281.93°)
OKLaboklab(21.13% -0.0142 -0.0597)
OKLCHoklch(21.13% 0.061 256.7)
XYZxyz(0.9963, 0.9269, 3.3745)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041834 #342004
analogous
#043034 #041834 #080434
triadic
#041834 #340418 #183404
tetradic
#041834 #340430 #342004 #043408
square
#041834 #340430 #342004 #043408
split-complementary
#041834 #340804 #303404
monochromatic
#020D1C #020D1C #041834 #08326D #0D4CA6

Accessibility & contrast

On white

17.72
#041834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#041834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041834
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041834#FFFFFF#000000##FFFFFF
##0418341.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091B35
Deuteranopia (green-blind)
#021633
Tritanopia (blue-blind)
#001F23
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #041834;
/* rgb */ color: rgb(4, 24, 52);
/* oklch */ color: oklch(21.1% 0.061 256.7);
Tailwind
colors: {
  custom: {
    50: '#4c546b',
    500: '#041834',
    950: '#000000',
  },
}
SCSS
$custom: #041834;
$custom-light: #4c546b;
$custom-dark: #000000;
JSON
{
  "hex": "#041834",
  "rgb": {
    "r": 4,
    "g": 24,
    "b": 52
  },
  "hsl": {
    "h": 215,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.2113,
    "c": 0.06139,
    "h": 256.7
  },
  "luminance": 0.00927
}

Semantic roles & 50–950 ramp

primary
#041834
secondary
#76511E
accent
#A52CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #041834

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

Preview Lab → · Contrast checker → · Palette generator →

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