#040482#040482

#040482 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.9% C 0.187 H 265.3°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#040482
RGBrgb(4, 4, 130)
HSLhsl(240, 94%, 26%)
HSVhsv(240, 97%, 51%)
CMYKcmyk(96.9%, 96.9%, 0%, 49%)
CIE-LABlab(13.97, 46.50, -64.31)
CIE-LCHlch(13.97, 79.36, 305.87°)
OKLaboklab(27.91% -0.0154 -0.1859)
OKLCHoklch(27.91% 0.187 265.3)
XYZxyz(4.1214, 1.7238, 21.2303)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040482 #828204
analogous
#044382 #040482 #430482
triadic
#040482 #820404 #048204
tetradic
#040482 #820443 #828204 #048243
square
#040482 #820443 #828204 #048243
split-complementary
#040482 #824304 #438204
monochromatic
#01011E #020247 #040482 #0606BD #0909F7

Accessibility & contrast

On white

15.62
#040482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#040482 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040482
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040482#FFFFFF#000000##FFFFFF
##0404821.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A85
Deuteranopia (green-blind)
#001C80
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #040482;
/* rgb */ color: rgb(4, 4, 130);
/* oklch */ color: oklch(27.9% 0.187 265.3);
Tailwind
colors: {
  custom: {
    50: '#684da8',
    500: '#040482',
    950: '#000000',
  },
}
SCSS
$custom: #040482;
$custom-light: #684da8;
$custom-dark: #000000;
JSON
{
  "hex": "#040482",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 94.03,
    "l": 26.275
  },
  "oklch": {
    "l": 0.27913,
    "c": 0.18653,
    "h": 265.3
  },
  "luminance": 0.01724
}

Semantic roles & 50–950 ramp

primary
#040482
secondary
#BBBB27
accent
#FF29FF
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#080210
muted
#7B787F

Preview Lab

Preview with #040482

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

Preview Lab → · Contrast checker → · Palette generator →

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