#040123#040123

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

Color values

HEX#040123
RGBrgb(4, 1, 35)
HSLhsl(245, 94%, 7%)
HSVhsv(245, 97%, 14%)
CMYKcmyk(88.6%, 97.1%, 0%, 86.3%)
CIE-LABlab(1.52, 8.35, -18.80)
CIE-LCHlch(1.52, 20.57, 293.93°)
OKLaboklab(12.76% 0.0082 -0.0728)
OKLCHoklch(12.76% 0.073 276.5)
XYZxyz(0.3642, 0.1688, 1.6032)
Luminance0.0017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040123 #202301
analogous
#010F23 #040123 #150123
triadic
#040123 #230401 #012304
tetradic
#040123 #23010F #202301 #012315
square
#040123 #23010F #202301 #012315
split-complementary
#040123 #231501 #0F2301
monochromatic
#03011E #03011E #040123 #0B035F #12049A

Accessibility & contrast

On white

20.31
#040123 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040123 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040123
20.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040123#FFFFFF#000000##FFFFFF
##0401231.0020.311.0320.31
#FFFFFF20.311.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000724
Deuteranopia (green-blind)
#000422
Tritanopia (blue-blind)
#000910
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040123;
/* rgb */ color: rgb(4, 1, 35);
/* oklch */ color: oklch(12.8% 0.073 276.5);
Tailwind
colors: {
  custom: {
    50: '#48475e',
    500: '#040123',
    950: '#000000',
  },
}
SCSS
$custom: #040123;
$custom-light: #48475e;
$custom-dark: #000000;
JSON
{
  "hex": "#040123",
  "rgb": {
    "r": 4,
    "g": 1,
    "b": 35
  },
  "hsl": {
    "h": 245.294,
    "s": 94.444,
    "l": 7.059
  },
  "oklch": {
    "l": 0.12762,
    "c": 0.07326,
    "h": 276.5
  },
  "luminance": 0.00169
}

Semantic roles & 50–950 ramp

primary
#040123
secondary
#636A16
accent
#FF29EC
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000004
muted
#777779

Preview Lab

Preview with #040123

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

Preview Lab → · Contrast checker → · Palette generator →

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