#040328#040328

#040328 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.2% C 0.076 H 273.2°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#040328
RGBrgb(4, 3, 40)
HSLhsl(242, 86%, 8%)
HSVhsv(242, 93%, 16%)
CMYKcmyk(90%, 92.5%, 0%, 84.3%)
CIE-LABlab(2.20, 9.56, -21.64)
CIE-LCHlch(2.20, 23.66, 293.84°)
OKLaboklab(14.23% 0.0042 -0.0755)
OKLCHoklch(14.23% 0.076 273.2)
XYZxyz(0.4655, 0.2441, 2.0297)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040328 #272803
analogous
#031428 #040328 #160328
triadic
#040328 #280403 #032804
tetradic
#040328 #280314 #272803 #032816
square
#040328 #280314 #272803 #032816
split-complementary
#040328 #281603 #142803
monochromatic
#03021C #03021C #040328 #0A0761 #0F0C9A

Accessibility & contrast

On white

20.02
#040328 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#040328 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040328
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040328#FFFFFF#000000##FFFFFF
##0403281.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A29
Deuteranopia (green-blind)
#000627
Tritanopia (blue-blind)
#000D14
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040328;
/* rgb */ color: rgb(4, 3, 40);
/* oklch */ color: oklch(14.2% 0.076 273.2);
Tailwind
colors: {
  custom: {
    50: '#484862',
    500: '#040328',
    950: '#000000',
  },
}
SCSS
$custom: #040328;
$custom-light: #484862;
$custom-dark: #000000;
JSON
{
  "hex": "#040328",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 40
  },
  "hsl": {
    "h": 241.622,
    "s": 86.047,
    "l": 8.431
  },
  "oklch": {
    "l": 0.1423,
    "c": 0.07564,
    "h": 273.2
  },
  "luminance": 0.00244
}

Semantic roles & 50–950 ramp

primary
#040328
secondary
#6A6C1B
accent
#FC2CF7
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #040328

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

Preview Lab → · Contrast checker → · Palette generator →

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