#041232#041232

#041232 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.3% C 0.067 H 262.4°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#041232
RGBrgb(4, 18, 50)
HSLhsl(222, 85%, 11%)
HSVhsv(222, 92%, 20%)
CMYKcmyk(92%, 64%, 0%, 80.4%)
CIE-LABlab(6.22, 7.68, -22.80)
CIE-LCHlch(6.22, 24.05, 288.61°)
OKLaboklab(19.31% -0.0088 -0.0665)
OKLCHoklch(19.31% 0.067 262.4)
XYZxyz(0.8419, 0.6886, 3.1055)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041232 #322404
analogous
#042932 #041232 #0D0432
triadic
#041232 #320412 #123204
tetradic
#041232 #320429 #322404 #04320D
square
#041232 #320429 #322404 #04320D
split-complementary
#041232 #320D04 #293204
monochromatic
#020A1C #020A1C #041232 #09266B #0D3BA3

Accessibility & contrast

On white

18.46
#041232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041232
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041232#FFFFFF#000000##FFFFFF
##0412321.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001633
Deuteranopia (green-blind)
#001231
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #041232;
/* rgb */ color: rgb(4, 18, 50);
/* oklch */ color: oklch(19.3% 0.067 262.4);
Tailwind
colors: {
  custom: {
    50: '#4c4f6a',
    500: '#041232',
    950: '#000000',
  },
}
SCSS
$custom: #041232;
$custom-light: #4c4f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#041232",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 221.739,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.19314,
    "c": 0.06708,
    "h": 262.4
  },
  "luminance": 0.00689
}

Semantic roles & 50–950 ramp

primary
#041232
secondary
#745A1D
accent
#BC2CFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #041232

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

Preview Lab → · Contrast checker → · Palette generator →

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