#041F40#041F40

#041F40 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.1% C 0.071 H 255.3°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#041F40
RGBrgb(4, 31, 64)
HSLhsl(213, 88%, 13%)
HSVhsv(213, 94%, 25%)
CMYKcmyk(93.8%, 51.6%, 0%, 74.9%)
CIE-LABlab(11.80, 4.63, -23.88)
CIE-LCHlch(11.80, 24.32, 280.97°)
OKLaboklab(24.08% -0.018 -0.0686)
OKLCHoklch(24.08% 0.071 255.3)
XYZxyz(1.4651, 1.3758, 5.0378)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041F40 #402504
analogous
#043D40 #041F40 #070440
triadic
#041F40 #40041F #1F4004
tetradic
#041F40 #40043D #402504 #044007
square
#041F40 #40043D #402504 #044007
split-complementary
#041F40 #400704 #3D4004
monochromatic
#020E1D #020E1D #041F40 #083B7A #0B57B3

Accessibility & contrast

On white

16.47
#041F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#041F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041F40
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041F40#FFFFFF#000000##FFFFFF
##041F401.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2241
Deuteranopia (green-blind)
#021D3F
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #041f40;
/* rgb */ color: rgb(4, 31, 64);
/* oklch */ color: oklch(24.1% 0.071 255.3);
Tailwind
colors: {
  custom: {
    50: '#505a75',
    500: '#041f40',
    950: '#000000',
  },
}
SCSS
$custom: #041f40;
$custom-light: #505a75;
$custom-dark: #000000;
JSON
{
  "hex": "#041f40",
  "rgb": {
    "r": 4,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 213,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24083,
    "c": 0.0709,
    "h": 255.3
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#041F40
secondary
#81551F
accent
#9F29FE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #041F40

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

Preview Lab → · Contrast checker → · Palette generator →

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