#4047FF#4047FF

#4047FF is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.8% C 0.263 H 271.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#4047FF
RGBrgb(64, 71, 255)
HSLhsl(238, 100%, 63%)
HSVhsv(238, 75%, 100%)
CMYKcmyk(74.9%, 72.2%, 0%, 0%)
CIE-LABlab(42.48, 56.82, -90.87)
CIE-LCHlch(42.48, 107.17, 302.02°)
OKLaboklab(52.81% 0.0064 -0.2631)
OKLCHoklch(52.81% 0.263 271.4)
XYZxyz(22.4115, 12.8140, 95.8806)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047FF #FFF840
analogous
#40A7FF #4047FF #9840FF
triadic
#4047FF #FF4047 #47FF40
tetradic
#4047FF #FF40A7 #FFF840 #40FF98
square
#4047FF #FF40A7 #FFF840 #40FF98
split-complementary
#4047FF #FF9840 #A7FF40
monochromatic
#0007C5 #030CFF #4047FF #7D82FF #BABDFF

Accessibility & contrast

On white

5.89
#4047FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#4047FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047FF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047FF#FFFFFF#000000##FFFFFF
##4047FF1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4047ff;
/* rgb */ color: rgb(64, 71, 255);
/* oklch */ color: oklch(52.8% 0.263 271.4);
Tailwind
colors: {
  custom: {
    50: '#927cff',
    500: '#4047ff',
    950: '#000000',
  },
}
SCSS
$custom: #4047ff;
$custom-light: #927cff;
$custom-dark: #000000;
JSON
{
  "hex": "#4047ff",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 255
  },
  "hsl": {
    "h": 237.801,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.52806,
    "c": 0.26315,
    "h": 271.4
  },
  "luminance": 0.12816
}

Semantic roles & 50–950 ramp

primary
#4047FF
secondary
#F0EEAB
accent
#DD00E6
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A18
muted
#7F7C86

Preview Lab

Preview with #4047FF

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

Preview Lab → · Contrast checker → · Palette generator →

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