#041237#041237

#041237 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.075 H 263.6°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#041237
RGBrgb(4, 18, 55)
HSLhsl(224, 86%, 12%)
HSVhsv(224, 93%, 22%)
CMYKcmyk(92.7%, 67.3%, 0%, 78.4%)
CIE-LABlab(6.63, 10.37, -25.79)
CIE-LCHlch(6.63, 27.80, 291.91°)
OKLaboklab(19.82% -0.0084 -0.075)
OKLCHoklch(19.82% 0.075 263.6)
XYZxyz(0.9557, 0.7341, 3.7050)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041237 #372904
analogous
#042C37 #041237 #100437
triadic
#041237 #370412 #123704
tetradic
#041237 #37042C #372904 #043710
square
#041237 #37042C #372904 #043710
split-complementary
#041237 #371004 #2C3704
monochromatic
#02091D #02091D #041237 #082570 #0C37A9

Accessibility & contrast

On white

18.31
#041237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#041237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041237
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041237#FFFFFF#000000##FFFFFF
##0412371.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#001236
Tritanopia (blue-blind)
#001B22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #041237;
/* rgb */ color: rgb(4, 18, 55);
/* oklch */ color: oklch(19.8% 0.075 263.6);
Tailwind
colors: {
  custom: {
    50: '#4e4f6e',
    500: '#041237',
    950: '#000000',
  },
}
SCSS
$custom: #041237;
$custom-light: #4e4f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#041237",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 223.529,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19823,
    "c": 0.07543,
    "h": 263.6
  },
  "luminance": 0.00734
}

Semantic roles & 50–950 ramp

primary
#041237
secondary
#79601E
accent
#C32BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #041237

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

Preview Lab → · Contrast checker → · Palette generator →

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