#040330#040330

#040330 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.087 H 271.2°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#040330
RGBrgb(4, 3, 48)
HSLhsl(241, 88%, 10%)
HSVhsv(241, 94%, 19%)
CMYKcmyk(91.7%, 93.8%, 0%, 81.2%)
CIE-LABlab(2.75, 13.39, -26.86)
CIE-LCHlch(2.75, 30.01, 296.49°)
OKLaboklab(15.4% 0.0018 -0.0874)
OKLCHoklch(15.4% 0.087 271.2)
XYZxyz(0.6160, 0.3043, 2.8220)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040330 #2F3003
analogous
#031930 #040330 #1A0330
triadic
#040330 #300403 #033004
tetradic
#040330 #300319 #2F3003 #03301A
square
#040330 #300319 #2F3003 #03301A
split-complementary
#040330 #301A03 #193003
monochromatic
#02021D #02021D #040330 #09076A #0E0AA3

Accessibility & contrast

On white

19.80
#040330 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040330 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040330
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040330#FFFFFF#000000##FFFFFF
##0403301.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C31
Deuteranopia (green-blind)
#00082F
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040330;
/* rgb */ color: rgb(4, 3, 48);
/* oklch */ color: oklch(15.4% 0.087 271.2);
Tailwind
colors: {
  custom: {
    50: '#4a4869',
    500: '#040330',
    950: '#000000',
  },
}
SCSS
$custom: #040330;
$custom-light: #4a4869;
$custom-dark: #000000;
JSON
{
  "hex": "#040330",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 48
  },
  "hsl": {
    "h": 241.333,
    "s": 88.235,
    "l": 10
  },
  "oklch": {
    "l": 0.15403,
    "c": 0.08744,
    "h": 271.2
  },
  "luminance": 0.00304
}

Semantic roles & 50–950 ramp

primary
#040330
secondary
#72731B
accent
#FE29FA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040330

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

Preview Lab → · Contrast checker → · Palette generator →

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