#040833#040833

#040833 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.1% C 0.084 H 268.8°. Best body text is #FFFFFF at 19.31:1 contrast (WCAG AA passes).

Color values

HEX#040833
RGBrgb(4, 8, 51)
HSLhsl(235, 85%, 11%)
HSVhsv(235, 92%, 20%)
CMYKcmyk(92.2%, 84.3%, 0%, 80%)
CIE-LABlab(3.96, 13.01, -27.16)
CIE-LCHlch(3.96, 30.11, 295.59°)
OKLaboklab(17.06% -0.0017 -0.0836)
OKLCHoklch(17.06% 0.084 268.8)
XYZxyz(0.7342, 0.4384, 3.1772)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040833 #332F04
analogous
#041F33 #040833 #170433
triadic
#040833 #330408 #083304
tetradic
#040833 #33041F #332F04 #043317
square
#040833 #33041F #332F04 #043317
split-complementary
#040833 #331704 #1F3304
monochromatic
#02041C #02041C #040833 #08116C #0D1AA4

Accessibility & contrast

On white

19.31
#040833 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040833 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040833
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040833#FFFFFF#000000##FFFFFF
##0408331.0019.311.0919.31
#FFFFFF19.311.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001034
Deuteranopia (green-blind)
#000C32
Tritanopia (blue-blind)
#00141C
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040833;
/* rgb */ color: rgb(4, 8, 51);
/* oklch */ color: oklch(17.1% 0.084 268.8);
Tailwind
colors: {
  custom: {
    50: '#4c4a6b',
    500: '#040833',
    950: '#000000',
  },
}
SCSS
$custom: #040833;
$custom-light: #4c4a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040833",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 51
  },
  "hsl": {
    "h": 234.894,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17063,
    "c": 0.08358,
    "h": 268.8
  },
  "luminance": 0.00438
}

Semantic roles & 50–950 ramp

primary
#040833
secondary
#756E1D
accent
#EA2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040833

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

Preview Lab → · Contrast checker → · Palette generator →

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