#4046F9#4046F9

#4046F9 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 52.1% C 0.257 H 271.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#4046F9
RGBrgb(64, 70, 249)
HSLhsl(238, 94%, 61%)
HSVhsv(238, 74%, 98%)
CMYKcmyk(74.3%, 71.9%, 0%, 2.4%)
CIE-LABlab(41.70, 55.46, -88.80)
CIE-LCHlch(41.70, 104.70, 301.98°)
OKLaboklab(52.08% 0.0077 -0.2571)
OKLCHoklch(52.08% 0.257 271.7)
XYZxyz(21.3976, 12.3076, 90.8521)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046F9 #F9F340
analogous
#40A3F9 #4046F9 #9740F9
triadic
#4046F9 #F94046 #46F940
tetradic
#4046F9 #F940A3 #F9F340 #40F997
square
#4046F9 #F940A3 #F9F340 #40F997
split-complementary
#4046F9 #F99740 #A3F940
monochromatic
#060CB9 #080FF4 #4046F9 #7B7FFB #B7B9FD

Accessibility & contrast

On white

6.07
#4046F9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4046F9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4046F9
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046F9#FFFFFF#000000##FFFFFF
##4046F91.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BFE
Deuteranopia (green-blind)
#0059F6
Tritanopia (blue-blind)
#00799C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4046f9;
/* rgb */ color: rgb(64, 70, 249);
/* oklch */ color: oklch(52.1% 0.257 271.7);
Tailwind
colors: {
  custom: {
    50: '#907bfd',
    500: '#4046f9',
    950: '#000000',
  },
}
SCSS
$custom: #4046f9;
$custom-light: #907bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#4046f9",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 249
  },
  "hsl": {
    "h": 238.054,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.52075,
    "c": 0.25718,
    "h": 271.7
  },
  "luminance": 0.1231
}

Semantic roles & 50–950 ramp

primary
#4046F9
secondary
#EDEBA8
accent
#DE00E6
background
#FAF7FF
surface
#F3EEFF
border
#CDC9D7
text
#0F0918
muted
#7F7B86

Preview Lab

Preview with #4046F9

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

Preview Lab → · Contrast checker → · Palette generator →

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