#041235#041235

#041235 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.6% C 0.072 H 263.2°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#041235
RGBrgb(4, 18, 53)
HSLhsl(223, 86%, 11%)
HSVhsv(223, 92%, 21%)
CMYKcmyk(92.5%, 66%, 0%, 79.2%)
CIE-LABlab(6.46, 9.30, -24.61)
CIE-LCHlch(6.46, 26.31, 290.70°)
OKLaboklab(19.62% -0.0085 -0.0716)
OKLCHoklch(19.62% 0.072 263.2)
XYZxyz(0.9087, 0.7154, 3.4577)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041235 #352704
analogous
#042A35 #041235 #0E0435
triadic
#041235 #350412 #123504
tetradic
#041235 #35042A #352704 #04350E
square
#041235 #35042A #352704 #04350E
split-complementary
#041235 #350E04 #2A3504
monochromatic
#020A1C #020A1C #041235 #08256E #0D39A7

Accessibility & contrast

On white

18.37
#041235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#041235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #041235
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041235#FFFFFF#000000##FFFFFF
##0412351.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#001234
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #041235;
/* rgb */ color: rgb(4, 18, 53);
/* oklch */ color: oklch(19.6% 0.072 263.2);
Tailwind
colors: {
  custom: {
    50: '#4d4f6c',
    500: '#041235',
    950: '#000000',
  },
}
SCSS
$custom: #041235;
$custom-light: #4d4f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#041235",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 222.857,
    "s": 85.965,
    "l": 11.176
  },
  "oklch": {
    "l": 0.19616,
    "c": 0.07212,
    "h": 263.2
  },
  "luminance": 0.00715
}

Semantic roles & 50–950 ramp

primary
#041235
secondary
#775E1E
accent
#C12CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #041235

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

Preview Lab → · Contrast checker → · Palette generator →

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