#041236#041236

#041236 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.074 H 263.4°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#041236
RGBrgb(4, 18, 54)
HSLhsl(223, 86%, 11%)
HSVhsv(223, 93%, 21%)
CMYKcmyk(92.6%, 66.7%, 0%, 78.8%)
CIE-LABlab(6.55, 9.84, -25.20)
CIE-LCHlch(6.55, 27.05, 291.32°)
OKLaboklab(19.72% -0.0084 -0.0733)
OKLCHoklch(19.72% 0.074 263.4)
XYZxyz(0.9320, 0.7247, 3.5801)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041236 #362804
analogous
#042B36 #041236 #0F0436
triadic
#041236 #360412 #123604
tetradic
#041236 #36042B #362804 #04360F
square
#041236 #36042B #362804 #04360F
split-complementary
#041236 #360F04 #2B3604
monochromatic
#02091C #02091C #041236 #08256F #0C38A8

Accessibility & contrast

On white

18.34
#041236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041236
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041236#FFFFFF#000000##FFFFFF
##0412361.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#001235
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #041236;
/* rgb */ color: rgb(4, 18, 54);
/* oklch */ color: oklch(19.7% 0.074 263.4);
Tailwind
colors: {
  custom: {
    50: '#4d4f6d',
    500: '#041236',
    950: '#000000',
  },
}
SCSS
$custom: #041236;
$custom-light: #4d4f6d;
$custom-dark: #000000;
JSON
{
  "hex": "#041236",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 223.2,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19719,
    "c": 0.07378,
    "h": 263.4
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#041236
secondary
#785F1E
accent
#C22BFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #041236

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

Preview Lab → · Contrast checker → · Palette generator →

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