#4046FF#4046FF

#4046FF is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.7% C 0.264 H 271.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4046FF
RGBrgb(64, 70, 255)
HSLhsl(238, 100%, 63%)
HSVhsv(238, 75%, 100%)
CMYKcmyk(74.9%, 72.5%, 0%, 0%)
CIE-LABlab(42.29, 57.36, -91.19)
CIE-LCHlch(42.29, 107.73, 302.17°)
OKLaboklab(52.67% 0.0068 -0.264)
OKLCHoklch(52.67% 0.264 271.5)
XYZxyz(22.3484, 12.6879, 95.8595)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4046FF #FFF940
analogous
#40A6FF #4046FF #9940FF
triadic
#4046FF #FF4046 #46FF40
tetradic
#4046FF #FF40A6 #FFF940 #40FF99
square
#4046FF #FF40A6 #FFF940 #40FF99
split-complementary
#4046FF #FF9940 #A6FF40
monochromatic
#0006C5 #030BFF #4046FF #7D81FF #BABDFF

Accessibility & contrast

On white

5.94
#4046FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#4046FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4046FF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4046FF#FFFFFF#000000##FFFFFF
##4046FF1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DFF
Deuteranopia (green-blind)
#005AFC
Tritanopia (blue-blind)
#007C9F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4046ff;
/* rgb */ color: rgb(64, 70, 255);
/* oklch */ color: oklch(52.7% 0.264 271.5);
Tailwind
colors: {
  custom: {
    50: '#927bff',
    500: '#4046ff',
    950: '#000000',
  },
}
SCSS
$custom: #4046ff;
$custom-light: #927bff;
$custom-dark: #000000;
JSON
{
  "hex": "#4046ff",
  "rgb": {
    "r": 64,
    "g": 70,
    "b": 255
  },
  "hsl": {
    "h": 238.115,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.52669,
    "c": 0.26408,
    "h": 271.5
  },
  "luminance": 0.1269
}

Semantic roles & 50–950 ramp

primary
#4046FF
secondary
#F0EEAB
accent
#DE00E6
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0918
muted
#7F7B86

Preview Lab

Preview with #4046FF

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

Preview Lab → · Contrast checker → · Palette generator →

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