#040A23#040A23

#040A23 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.7% C 0.054 H 267.1°. Best body text is #FFFFFF at 19.57:1 contrast (WCAG AA passes).

Color values

HEX#040A23
RGBrgb(4, 10, 35)
HSLhsl(228, 79%, 8%)
HSVhsv(228, 89%, 14%)
CMYKcmyk(88.6%, 71.4%, 0%, 86.3%)
CIE-LABlab(3.29, 4.74, -16.09)
CIE-LCHlch(3.29, 16.77, 286.42°)
OKLaboklab(15.67% -0.0027 -0.0535)
OKLCHoklch(15.67% 0.054 267.1)
XYZxyz(0.4619, 0.3642, 1.6357)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A23 #231D04
analogous
#041923 #040A23 #0D0423
triadic
#040A23 #23040A #0A2304
tetradic
#040A23 #230419 #231D04 #04230D
square
#040A23 #230419 #231D04 #04230D
split-complementary
#040A23 #230D04 #192304
monochromatic
#03081B #03081B #040A23 #0A1A5A #112991

Accessibility & contrast

On white

19.57
#040A23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040A23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A23
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A23#FFFFFF#000000##FFFFFF
##040A231.0019.571.0719.57
#FFFFFF19.571.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D24
Deuteranopia (green-blind)
#000A23
Tritanopia (blue-blind)
#001014
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040a23;
/* rgb */ color: rgb(4, 10, 35);
/* oklch */ color: oklch(15.7% 0.054 267.1);
Tailwind
colors: {
  custom: {
    50: '#484b5e',
    500: '#040a23',
    950: '#000000',
  },
}
SCSS
$custom: #040a23;
$custom-light: #484b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#040a23",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 35
  },
  "hsl": {
    "h": 228.387,
    "s": 79.487,
    "l": 7.647
  },
  "oklch": {
    "l": 0.15672,
    "c": 0.05356,
    "h": 267.1
  },
  "luminance": 0.00364
}

Semantic roles & 50–950 ramp

primary
#040A23
secondary
#66581D
accent
#D032F6
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040A23

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

Preview Lab → · Contrast checker → · Palette generator →

#040A23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva