#04031D#04031D

#04031D is a very dark, muted blue. Relative luminance 0.002; OKLCH L 12.7% C 0.058 H 277.1°. Best body text is #FFFFFF at 20.27:1 contrast (WCAG AA passes).

Color values

HEX#04031D
RGBrgb(4, 3, 29)
HSLhsl(242, 81%, 6%)
HSVhsv(242, 90%, 11%)
CMYKcmyk(86.2%, 89.7%, 0%, 88.6%)
CIE-LABlab(1.62, 5.47, -13.89)
CIE-LCHlch(1.62, 14.93, 291.51°)
OKLaboklab(12.71% 0.0072 -0.0576)
OKLCHoklch(12.71% 0.058 277.1)
XYZxyz(0.3043, 0.1796, 1.1808)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04031D #1C1D03
analogous
#030F1D #04031D #11031D
triadic
#04031D #1D0403 #031D04
tetradic
#04031D #1D030F #1C1D03 #031D11
square
#04031D #1D030F #1C1D03 #031D11
split-complementary
#04031D #1D1103 #0F1D03
monochromatic
#04031C #04031C #04031D #0C0954 #130E8C

Accessibility & contrast

On white

20.27
#04031D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04031D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04031D
20.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04031D#FFFFFF#000000##FFFFFF
##04031D1.0020.271.0420.27
#FFFFFF20.271.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071E
Deuteranopia (green-blind)
#00051C
Tritanopia (blue-blind)
#00080E
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #04031d;
/* rgb */ color: rgb(4, 3, 29);
/* oklch */ color: oklch(12.7% 0.058 277.1);
Tailwind
colors: {
  custom: {
    50: '#484858',
    500: '#04031d',
    950: '#000000',
  },
}
SCSS
$custom: #04031d;
$custom-light: #484858;
$custom-dark: #000000;
JSON
{
  "hex": "#04031d",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 29
  },
  "hsl": {
    "h": 242.308,
    "s": 81.25,
    "l": 6.275
  },
  "oklch": {
    "l": 0.12707,
    "c": 0.05808,
    "h": 277.1
  },
  "luminance": 0.0018
}

Semantic roles & 50–950 ramp

primary
#04031D
secondary
#5E611B
accent
#F830F0
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000003
muted
#777778

Preview Lab

Preview with #04031D

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

Preview Lab → · Contrast checker → · Palette generator →

#04031D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva