#040230#040230

#040230 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.1% C 0.089 H 271.5°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#040230
RGBrgb(4, 2, 48)
HSLhsl(243, 92%, 10%)
HSVhsv(243, 96%, 19%)
CMYKcmyk(91.7%, 95.8%, 0%, 81.2%)
CIE-LABlab(2.55, 13.78, -27.17)
CIE-LCHlch(2.55, 30.47, 296.90°)
OKLaboklab(15.12% 0.0024 -0.0893)
OKLCHoklch(15.12% 0.089 271.5)
XYZxyz(0.6051, 0.2826, 2.8184)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040230 #2E3002
analogous
#021730 #040230 #1B0230
triadic
#040230 #300402 #023004
tetradic
#040230 #300217 #2E3002 #02301B
square
#040230 #300217 #2E3002 #02301B
split-complementary
#040230 #301B02 #173002
monochromatic
#02011D #02011D #040230 #09046B #0E07A6

Accessibility & contrast

On white

19.88
#040230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040230
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040230#FFFFFF#000000##FFFFFF
##0402301.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C31
Deuteranopia (green-blind)
#00072F
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #040230;
/* rgb */ color: rgb(4, 2, 48);
/* oklch */ color: oklch(15.1% 0.089 271.5);
Tailwind
colors: {
  custom: {
    50: '#4a4769',
    500: '#040230',
    950: '#000000',
  },
}
SCSS
$custom: #040230;
$custom-light: #4a4769;
$custom-dark: #000000;
JSON
{
  "hex": "#040230",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 48
  },
  "hsl": {
    "h": 242.609,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.15121,
    "c": 0.08936,
    "h": 271.5
  },
  "luminance": 0.00283
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #040230

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

Preview Lab → · Contrast checker → · Palette generator →

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