#041233#041233

#041233 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.4% C 0.069 H 262.7°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#041233
RGBrgb(4, 18, 51)
HSLhsl(222, 85%, 11%)
HSVhsv(222, 92%, 20%)
CMYKcmyk(92.2%, 64.7%, 0%, 80%)
CIE-LABlab(6.30, 8.22, -23.41)
CIE-LCHlch(6.30, 24.81, 289.36°)
OKLaboklab(19.41% -0.0087 -0.0682)
OKLCHoklch(19.41% 0.069 262.7)
XYZxyz(0.8637, 0.6973, 3.2204)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#041233 #332504
analogous
#042933 #041233 #0D0433
triadic
#041233 #330412 #123304
tetradic
#041233 #330429 #332504 #04330D
square
#041233 #330429 #332504 #04330D
split-complementary
#041233 #330D04 #293304
monochromatic
#020A1C #020A1C #041233 #08266C #0D3AA4

Accessibility & contrast

On white

18.43
#041233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #041233
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##041233#FFFFFF#000000##FFFFFF
##0412331.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#001232
Tritanopia (blue-blind)
#001A20
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #041233;
/* rgb */ color: rgb(4, 18, 51);
/* oklch */ color: oklch(19.4% 0.069 262.7);
Tailwind
colors: {
  custom: {
    50: '#4c4f6b',
    500: '#041233',
    950: '#000000',
  },
}
SCSS
$custom: #041233;
$custom-light: #4c4f6b;
$custom-dark: #000000;
JSON
{
  "hex": "#041233",
  "rgb": {
    "r": 4,
    "g": 18,
    "b": 51
  },
  "hsl": {
    "h": 222.128,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19414,
    "c": 0.06877,
    "h": 262.7
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#041233
secondary
#755B1D
accent
#BE2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #041233

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

Preview Lab → · Contrast checker → · Palette generator →

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