#040327#040327

#040327 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.1% C 0.074 H 273.5°. Best body text is #FFFFFF at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#040327
RGBrgb(4, 3, 39)
HSLhsl(242, 86%, 8%)
HSVhsv(242, 92%, 15%)
CMYKcmyk(89.7%, 92.3%, 0%, 84.7%)
CIE-LABlab(2.14, 9.14, -20.96)
CIE-LCHlch(2.14, 22.87, 293.55°)
OKLaboklab(14.09% 0.0045 -0.074)
OKLCHoklch(14.09% 0.074 273.5)
XYZxyz(0.4487, 0.2374, 1.9412)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040327 #262703
analogous
#031427 #040327 #160327
triadic
#040327 #270403 #032704
tetradic
#040327 #270314 #262703 #032716
square
#040327 #270314 #262703 #032716
split-complementary
#040327 #271603 #142703
monochromatic
#03021C #03021C #040327 #0A0760 #100C99

Accessibility & contrast

On white

20.05
#040327 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040327
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040327#FFFFFF#000000##FFFFFF
##0403271.0020.051.0520.05
#FFFFFF20.051.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000928
Deuteranopia (green-blind)
#000626
Tritanopia (blue-blind)
#000C14
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040327;
/* rgb */ color: rgb(4, 3, 39);
/* oklch */ color: oklch(14.1% 0.074 273.5);
Tailwind
colors: {
  custom: {
    50: '#484861',
    500: '#040327',
    950: '#000000',
  },
}
SCSS
$custom: #040327;
$custom-light: #484861;
$custom-dark: #000000;
JSON
{
  "hex": "#040327",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 39
  },
  "hsl": {
    "h": 241.667,
    "s": 85.714,
    "l": 8.235
  },
  "oklch": {
    "l": 0.14087,
    "c": 0.07411,
    "h": 273.5
  },
  "luminance": 0.00237
}

Semantic roles & 50–950 ramp

primary
#040327
secondary
#696B1B
accent
#FC2CF6
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010005
muted
#777779

Preview Lab

Preview with #040327

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

Preview Lab → · Contrast checker → · Palette generator →

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