#041C40#041C40

#041C40 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.3% C 0.075 H 258.2°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#041C40
RGBrgb(4, 28, 64)
HSLhsl(216, 88%, 13%)
HSVhsv(216, 94%, 25%)
CMYKcmyk(93.8%, 56.2%, 0%, 74.9%)
CIE-LABlab(10.75, 6.98, -25.56)
CIE-LCHlch(10.75, 26.50, 285.28°)
OKLaboklab(23.28% -0.0154 -0.0736)
OKLCHoklch(23.28% 0.075 258.2)
XYZxyz(1.3904, 1.2263, 5.0129)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041C40 #402804
analogous
#043A40 #041C40 #0A0440
triadic
#041C40 #40041C #1C4004
tetradic
#041C40 #40043A #402804 #04400A
square
#041C40 #40043A #402804 #04400A
split-complementary
#041C40 #400A04 #3A4004
monochromatic
#020D1D #020D1D #041C40 #08357A #0B4EB3

Accessibility & contrast

On white

16.86
#041C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#041C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041C40
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041C40#FFFFFF#000000##FFFFFF
##041C401.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062041
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#00252A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #041c40;
/* rgb */ color: rgb(4, 28, 64);
/* oklch */ color: oklch(23.3% 0.075 258.2);
Tailwind
colors: {
  custom: {
    50: '#505775',
    500: '#041c40',
    950: '#000000',
  },
}
SCSS
$custom: #041c40;
$custom-light: #505775;
$custom-dark: #000000;
JSON
{
  "hex": "#041c40",
  "rgb": {
    "r": 4,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 216,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23277,
    "c": 0.07519,
    "h": 258.2
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#041C40
secondary
#815A1F
accent
#A929FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041C40

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

Preview Lab → · Contrast checker → · Palette generator →

#041C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva