#4047F9#4047F9

#4047F9 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 52.2% C 0.256 H 271.6°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#4047F9
RGBrgb(64, 71, 249)
HSLhsl(238, 94%, 61%)
HSVhsv(238, 74%, 98%)
CMYKcmyk(74.3%, 71.5%, 0%, 2.4%)
CIE-LABlab(41.90, 54.91, -88.48)
CIE-LCHlch(41.90, 104.13, 301.82°)
OKLaboklab(52.22% 0.0073 -0.2561)
OKLCHoklch(52.22% 0.256 271.6)
XYZxyz(21.4607, 12.4337, 90.8731)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047F9 #F9F240
analogous
#40A4F9 #4047F9 #9640F9
triadic
#4047F9 #F94047 #47F940
tetradic
#4047F9 #F940A4 #F9F240 #40F996
square
#4047F9 #F940A4 #F9F240 #40F996
split-complementary
#4047F9 #F99640 #A4F940
monochromatic
#060DB9 #0811F4 #4047F9 #7B80FB #B7B9FD

Accessibility & contrast

On white

6.02
#4047F9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4047F9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047F9
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047F9#FFFFFF#000000##FFFFFF
##4047F91.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFE
Deuteranopia (green-blind)
#005AF6
Tritanopia (blue-blind)
#007A9C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4047f9;
/* rgb */ color: rgb(64, 71, 249);
/* oklch */ color: oklch(52.2% 0.256 271.6);
Tailwind
colors: {
  custom: {
    50: '#907cfd',
    500: '#4047f9',
    950: '#000000',
  },
}
SCSS
$custom: #4047f9;
$custom-light: #907cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#4047f9",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 249
  },
  "hsl": {
    "h": 237.73,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.52215,
    "c": 0.25622,
    "h": 271.6
  },
  "luminance": 0.12436
}

Semantic roles & 50–950 ramp

primary
#4047F9
secondary
#EDEAA8
accent
#DD00E6
background
#FAF7FF
surface
#F3EEFF
border
#CDC9D7
text
#0F0918
muted
#7F7B86

Preview Lab

Preview with #4047F9

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

Preview Lab → · Contrast checker → · Palette generator →

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