#040315#040315

#040315 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.7% C 0.044 H 281.3°. Best body text is #FFFFFF at 20.41:1 contrast (WCAG AA passes).

Color values

HEX#040315
RGBrgb(4, 3, 21)
HSLhsl(243, 75%, 5%)
HSVhsv(243, 86%, 8%)
CMYKcmyk(81%, 85.7%, 0%, 91.8%)
CIE-LABlab(1.31, 3.28, -8.12)
CIE-LCHlch(1.31, 8.76, 291.97°)
OKLaboklab(11.71% 0.0086 -0.0431)
OKLCHoklch(11.71% 0.044 281.3)
XYZxyz(0.2179, 0.1451, 0.7258)
Luminance0.0014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040315 #141503
analogous
#030B15 #040315 #0D0315
triadic
#040315 #150403 #031504
tetradic
#040315 #15030B #141503 #03150D
square
#040315 #15030B #141503 #03150D
split-complementary
#040315 #150D03 #0B1503
monochromatic
#05041B #05041B #05041B #0E0B4B #181280

Accessibility & contrast

On white

20.41
#040315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040315
20.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040315#FFFFFF#000000##FFFFFF
##0403151.0020.411.0320.41
#FFFFFF20.411.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000516
Deuteranopia (green-blind)
#000415
Tritanopia (blue-blind)
#00060A
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040315;
/* rgb */ color: rgb(4, 3, 21);
/* oklch */ color: oklch(11.7% 0.044 281.3);
Tailwind
colors: {
  custom: {
    50: '#484852',
    500: '#040315',
    950: '#000000',
  },
}
SCSS
$custom: #040315;
$custom-light: #484852;
$custom-dark: #000000;
JSON
{
  "hex": "#040315",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 21
  },
  "hsl": {
    "h": 243.333,
    "s": 75,
    "l": 4.706
  },
  "oklch": {
    "l": 0.11709,
    "c": 0.04396,
    "h": 281.3
  },
  "luminance": 0.00145
}

Semantic roles & 50–950 ramp

primary
#040315
secondary
#55581C
accent
#F236E7
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #040315

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

Preview Lab → · Contrast checker → · Palette generator →

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