#04002B#04002B

#04002B is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.7% C 0.087 H 273.7°. Best body text is #FFFFFF at 20.19:1 contrast (WCAG AA passes).

Color values

HEX#04002B
RGBrgb(4, 0, 43)
HSLhsl(246, 100%, 8%)
HSVhsv(246, 100%, 17%)
CMYKcmyk(90.7%, 100%, 0%, 83.1%)
CIE-LABlab(1.81, 12.11, -24.57)
CIE-LCHlch(1.81, 27.39, 296.25°)
OKLaboklab(13.69% 0.0056 -0.0867)
OKLCHoklch(13.69% 0.087 273.7)
XYZxyz(0.4860, 0.2002, 2.2981)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04002B #272B00
analogous
#00112B #04002B #19002B
triadic
#04002B #2B0400 #002B04
tetradic
#04002B #2B0011 #272B00 #002B19
square
#04002B #2B0011 #272B00 #002B19
split-complementary
#04002B #2B1900 #112B00
monochromatic
#03001F #03001F #04002B #0A0068 #0F00A5

Accessibility & contrast

On white

20.19
#04002B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#04002B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04002B
20.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04002B#FFFFFF#000000##FFFFFF
##04002B1.0020.191.0420.19
#FFFFFF20.191.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00082C
Deuteranopia (green-blind)
#00052A
Tritanopia (blue-blind)
#000B15
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #04002b;
/* rgb */ color: rgb(4, 0, 43);
/* oklch */ color: oklch(13.7% 0.087 273.7);
Tailwind
colors: {
  custom: {
    50: '#494664',
    500: '#04002b',
    950: '#000000',
  },
}
SCSS
$custom: #04002b;
$custom-light: #494664;
$custom-dark: #000000;
JSON
{
  "hex": "#04002b",
  "rgb": {
    "r": 4,
    "g": 0,
    "b": 43
  },
  "hsl": {
    "h": 245.581,
    "s": 100,
    "l": 8.431
  },
  "oklch": {
    "l": 0.13686,
    "c": 0.08693,
    "h": 273.7
  },
  "luminance": 0.002
}

Semantic roles & 50–950 ramp

primary
#04002B
secondary
#6A7314
accent
#FF29EB
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04002B

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

Preview Lab → · Contrast checker → · Palette generator →

#04002B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva