#040223#040223

#040223 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.2% C 0.070 H 275.6°. Best body text is #FFFFFF at 20.23:1 contrast (WCAG AA passes).

Color values

HEX#040223
RGBrgb(4, 2, 35)
HSLhsl(244, 89%, 7%)
HSVhsv(244, 94%, 14%)
CMYKcmyk(88.6%, 94.3%, 0%, 86.3%)
CIE-LABlab(1.72, 7.95, -18.50)
CIE-LCHlch(1.72, 20.14, 293.25°)
OKLaboklab(13.15% 0.0069 -0.0701)
OKLCHoklch(13.15% 0.07 275.6)
XYZxyz(0.3751, 0.1905, 1.6068)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040223 #212302
analogous
#021123 #040223 #150223
triadic
#040223 #230402 #022304
tetradic
#040223 #230211 #212302 #022315
square
#040223 #230211 #212302 #022315
split-complementary
#040223 #231502 #112302
monochromatic
#03021D #03021D #040223 #0B055D #110997

Accessibility & contrast

On white

20.23
#040223 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040223
20.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040223#FFFFFF#000000##FFFFFF
##0402231.0020.231.0420.23
#FFFFFF20.231.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000824
Deuteranopia (green-blind)
#000522
Tritanopia (blue-blind)
#000A11
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040223;
/* rgb */ color: rgb(4, 2, 35);
/* oklch */ color: oklch(13.2% 0.070 275.6);
Tailwind
colors: {
  custom: {
    50: '#48475e',
    500: '#040223',
    950: '#000000',
  },
}
SCSS
$custom: #040223;
$custom-light: #48475e;
$custom-dark: #000000;
JSON
{
  "hex": "#040223",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 35
  },
  "hsl": {
    "h": 243.636,
    "s": 89.189,
    "l": 7.255
  },
  "oklch": {
    "l": 0.13153,
    "c": 0.07048,
    "h": 275.6
  },
  "luminance": 0.00191
}

Semantic roles & 50–950 ramp

primary
#040223
secondary
#646918
accent
#FF29F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040223

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

Preview Lab → · Contrast checker → · Palette generator →

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