#040533#040533

#040533 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.088 H 270.0°. Best body text is #FFFFFF at 19.54:1 contrast (WCAG AA passes).

Color values

HEX#040533
RGBrgb(4, 5, 51)
HSLhsl(239, 85%, 11%)
HSVhsv(239, 92%, 20%)
CMYKcmyk(92.2%, 90.2%, 0%, 80%)
CIE-LABlab(3.37, 14.21, -28.10)
CIE-LCHlch(3.37, 31.49, 296.82°)
OKLaboklab(16.36% 0 -0.0883)
OKLCHoklch(16.36% 0.088 270)
XYZxyz(0.7017, 0.3733, 3.1664)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040533 #333204
analogous
#041C33 #040533 #1A0433
triadic
#040533 #330405 #053304
tetradic
#040533 #33041C #333204 #04331A
square
#040533 #33041C #333204 #04331A
split-complementary
#040533 #331A04 #1C3304
monochromatic
#02031C #02031C #040533 #080B6C #0D10A4

Accessibility & contrast

On white

19.54
#040533 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040533 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040533
19.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040533#FFFFFF#000000##FFFFFF
##0405331.0019.541.0719.54
#FFFFFF19.541.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F34
Deuteranopia (green-blind)
#000A32
Tritanopia (blue-blind)
#00121B
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040533;
/* rgb */ color: rgb(4, 5, 51);
/* oklch */ color: oklch(16.4% 0.088 270.0);
Tailwind
colors: {
  custom: {
    50: '#4b486b',
    500: '#040533',
    950: '#000000',
  },
}
SCSS
$custom: #040533;
$custom-light: #4b486b;
$custom-dark: #000000;
JSON
{
  "hex": "#040533",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 51
  },
  "hsl": {
    "h": 238.723,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.16358,
    "c": 0.08828,
    "h": 270
  },
  "luminance": 0.00373
}

Semantic roles & 50–950 ramp

primary
#040533
secondary
#75731D
accent
#F72CFC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #040533

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

Preview Lab → · Contrast checker → · Palette generator →

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