#040232#040232

#040232 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.092 H 271.1°. Best body text is #FFFFFF at 19.81:1 contrast (WCAG AA passes).

Color values

HEX#040232
RGBrgb(4, 2, 50)
HSLhsl(243, 92%, 10%)
HSVhsv(243, 96%, 20%)
CMYKcmyk(92%, 96%, 0%, 80.4%)
CIE-LABlab(2.70, 14.86, -28.43)
CIE-LCHlch(2.70, 32.08, 297.59°)
OKLaboklab(15.43% 0.0018 -0.0921)
OKLCHoklch(15.43% 0.092 271.1)
XYZxyz(0.6473, 0.2994, 3.0407)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040232 #303202
analogous
#021832 #040232 #1C0232
triadic
#040232 #320402 #023204
tetradic
#040232 #320218 #303202 #02321C
square
#040232 #320218 #303202 #02321C
split-complementary
#040232 #321C02 #183202
monochromatic
#02011D #02011D #040232 #09046D #0D07A8

Accessibility & contrast

On white

19.81
#040232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#040232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040232
19.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040232#FFFFFF#000000##FFFFFF
##0402321.0019.811.0619.81
#FFFFFF19.811.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C33
Deuteranopia (green-blind)
#000731
Tritanopia (blue-blind)
#00101A
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #040232;
/* rgb */ color: rgb(4, 2, 50);
/* oklch */ color: oklch(15.4% 0.092 271.1);
Tailwind
colors: {
  custom: {
    50: '#4b476a',
    500: '#040232',
    950: '#000000',
  },
}
SCSS
$custom: #040232;
$custom-light: #4b476a;
$custom-dark: #000000;
JSON
{
  "hex": "#040232",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 242.5,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1543,
    "c": 0.09214,
    "h": 271.1
  },
  "luminance": 0.003
}

Semantic roles & 50–950 ramp

primary
#040232
secondary
#727619
accent
#FF29F6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #040232

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

Preview Lab → · Contrast checker → · Palette generator →

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