#040326#040326

#040326 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.9% C 0.073 H 273.8°. Best body text is #FFFFFF at 20.07:1 contrast (WCAG AA passes).

Color values

HEX#040326
RGBrgb(4, 3, 38)
HSLhsl(242, 85%, 8%)
HSVhsv(242, 92%, 15%)
CMYKcmyk(89.5%, 92.1%, 0%, 85.1%)
CIE-LABlab(2.08, 8.73, -20.28)
CIE-LCHlch(2.08, 22.08, 293.28°)
OKLaboklab(13.94% 0.0048 -0.0724)
OKLCHoklch(13.94% 0.073 273.8)
XYZxyz(0.4324, 0.2308, 1.8551)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040326 #252603
analogous
#031326 #040326 #150326
triadic
#040326 #260403 #032604
tetradic
#040326 #260313 #252603 #032615
square
#040326 #260313 #252603 #032615
split-complementary
#040326 #261503 #132603
monochromatic
#03021C #03021C #040326 #0A075F #100C97

Accessibility & contrast

On white

20.07
#040326 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040326
20.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040326#FFFFFF#000000##FFFFFF
##0403261.0020.071.0520.07
#FFFFFF20.071.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000927
Deuteranopia (green-blind)
#000625
Tritanopia (blue-blind)
#000C13
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #040326;
/* rgb */ color: rgb(4, 3, 38);
/* oklch */ color: oklch(13.9% 0.073 273.8);
Tailwind
colors: {
  custom: {
    50: '#484860',
    500: '#040326',
    950: '#000000',
  },
}
SCSS
$custom: #040326;
$custom-light: #484860;
$custom-dark: #000000;
JSON
{
  "hex": "#040326",
  "rgb": {
    "r": 4,
    "g": 3,
    "b": 38
  },
  "hsl": {
    "h": 241.714,
    "s": 85.366,
    "l": 8.039
  },
  "oklch": {
    "l": 0.13944,
    "c": 0.07258,
    "h": 273.8
  },
  "luminance": 0.00231
}

Semantic roles & 50–950 ramp

primary
#040326
secondary
#686A1B
accent
#FC2CF6
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010005
muted
#777779

Preview Lab

Preview with #040326

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

Preview Lab → · Contrast checker → · Palette generator →

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