Primary Blue#0804F9

#0804F9 is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 44.6% C 0.306 H 264.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Primary Blue — editorial page

Color values

HEX#0804F9
RGBrgb(8, 4, 249)
HSLhsl(241, 97%, 50%)
HSVhsv(241, 98%, 98%)
CMYKcmyk(96.8%, 98.4%, 0%, 2.4%)
CIE-LABlab(31.75, 77.19, -105.40)
CIE-LCHlch(31.75, 130.64, 306.22°)
OKLaboklab(44.64% -0.0286 -0.3045)
OKLCHoklch(44.64% 0.306 264.6)
XYZxyz(17.2365, 6.9757, 90.0421)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0804F9 #F5F904
analogous
#047AF9 #0804F9 #8304F9
triadic
#0804F9 #F90804 #04F908
tetradic
#0804F9 #F9047A #F5F904 #04F983
square
#0804F9 #F9047A #F5F904 #04F983
split-complementary
#0804F9 #F98304 #7AF904
monochromatic
#040281 #0603BD #0804F9 #413EFC #7D7BFD

Accessibility & contrast

On white

8.77
#0804F9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#0804F9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0804F9
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0804F9#FFFFFF#000000##FFFFFF
##0804F91.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057FF
Deuteranopia (green-blind)
#003DF6
Tritanopia (blue-blind)
#006992
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #0804f9;
/* rgb */ color: rgb(8, 4, 249);
/* oklch */ color: oklch(44.6% 0.306 264.6);
Tailwind
colors: {
  custom: {
    50: '#895dfd',
    500: '#0804f9',
    950: '#000000',
  },
}
SCSS
$custom: #0804f9;
$custom-light: #895dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#0804f9",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 249
  },
  "hsl": {
    "h": 240.98,
    "s": 96.838,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44641,
    "c": 0.3058,
    "h": 264.6
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#0804F9
secondary
#E3E474
accent
#FF29FC
background
#FAF6FF
surface
#F3EBFF
border
#CDC6D7
text
#0F0518
muted
#7F7986

Preview Lab

Preview with #0804F9

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

Preview Lab → · Contrast checker → · Palette generator →

#0804F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva