#041231#041231

#041231 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.2% C 0.065 H 262.1°. Best body text is #FFFFFF at 18.49:1 contrast (WCAG AA passes).

Color values

HEX#041231
RGBrgb(4, 18, 49)
HSLhsl(221, 85%, 10%)
HSVhsv(221, 92%, 19%)
CMYKcmyk(91.8%, 63.3%, 0%, 80.8%)
CIE-LABlab(6.14, 7.14, -22.18)
CIE-LCHlch(6.14, 23.30, 287.83°)
OKLaboklab(19.22% -0.009 -0.0648)
OKLCHoklch(19.22% 0.065 262.1)
XYZxyz(0.8206, 0.6801, 2.9932)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041231 #312304
analogous
#042831 #041231 #0C0431
triadic
#041231 #310412 #123104
tetradic
#041231 #310428 #312304 #04310C
square
#041231 #310428 #312304 #04310C
split-complementary
#041231 #310C04 #283104
monochromatic
#020A1C #020A1C #041231 #09276A #0D3CA2

Accessibility & contrast

On white

18.49
#041231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041231
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041231#FFFFFF#000000##FFFFFF
##0412311.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #041231;
/* rgb */ color: rgb(4, 18, 49);
/* oklch */ color: oklch(19.2% 0.065 262.1);
Tailwind
colors: {
  custom: {
    50: '#4b4f69',
    500: '#041231',
    950: '#000000',
  },
}
SCSS
$custom: #041231;
$custom-light: #4b4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#041231",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 221.333,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19216,
    "c": 0.06538,
    "h": 262.1
  },
  "luminance": 0.0068
}

Semantic roles & 50–950 ramp

primary
#041231
secondary
#73591D
accent
#BB2DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #041231

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

Preview Lab → · Contrast checker → · Palette generator →

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