#040226#040226

#040226 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.6% C 0.075 H 274.5°. Best body text is #FFFFFF at 20.16:1 contrast (WCAG AA passes).

Color values

HEX#040226
RGBrgb(4, 2, 38)
HSLhsl(243, 90%, 8%)
HSVhsv(243, 95%, 15%)
CMYKcmyk(89.5%, 94.7%, 0%, 85.1%)
CIE-LABlab(1.89, 9.13, -20.59)
CIE-LCHlch(1.89, 22.52, 293.90°)
OKLaboklab(13.6% 0.0059 -0.0748)
OKLCHoklch(13.6% 0.075 274.5)
XYZxyz(0.4215, 0.2091, 1.8515)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040226 #242602
analogous
#021226 #040226 #160226
triadic
#040226 #260402 #022604
tetradic
#040226 #260212 #242602 #022616
square
#040226 #260212 #242602 #022616
split-complementary
#040226 #261602 #122602
monochromatic
#03021D #03021D #040226 #0A0560 #10089A

Accessibility & contrast

On white

20.16
#040226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040226
20.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040226#FFFFFF#000000##FFFFFF
##0402261.0020.161.0420.16
#FFFFFF20.161.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000827
Deuteranopia (green-blind)
#000525
Tritanopia (blue-blind)
#000B13
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #040226;
/* rgb */ color: rgb(4, 2, 38);
/* oklch */ color: oklch(13.6% 0.075 274.5);
Tailwind
colors: {
  custom: {
    50: '#484760',
    500: '#040226',
    950: '#000000',
  },
}
SCSS
$custom: #040226;
$custom-light: #484760;
$custom-dark: #000000;
JSON
{
  "hex": "#040226",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 38
  },
  "hsl": {
    "h": 243.333,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.13598,
    "c": 0.07499,
    "h": 274.5
  },
  "luminance": 0.00209
}

Semantic roles & 50–950 ramp

primary
#040226
secondary
#676B18
accent
#FF29F3
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010005
muted
#777779

Preview Lab

Preview with #040226

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

Preview Lab → · Contrast checker → · Palette generator →

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