#4047CA#4047CA

#4047CA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.8% C 0.199 H 273.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4047CA
RGBrgb(64, 71, 202)
HSLhsl(237, 57%, 52%)
HSVhsv(237, 68%, 79%)
CMYKcmyk(68.3%, 64.9%, 0%, 20.8%)
CIE-LABlab(37.59, 39.36, -68.77)
CIE-LCHlch(37.59, 79.24, 299.79°)
OKLaboklab(47.8% 0.0127 -0.1986)
OKLCHoklch(47.8% 0.199 273.7)
XYZxyz(15.0247, 9.8593, 56.9769)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047CA #CAC340
analogous
#408CCA #4047CA #7E40CA
triadic
#4047CA #CA4047 #47CA40
tetradic
#4047CA #CA408C #CAC340 #40CA7E
square
#4047CA #CA408C #CAC340 #40CA7E
split-complementary
#4047CA #CA7E40 #8CCA40
monochromatic
#1F2370 #2C32A0 #4047CA #7075D7 #A0A3E5

Accessibility & contrast

On white

7.07
#4047CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4047CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047CA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047CA#FFFFFF#000000##FFFFFF
##4047CA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#006982
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4047ca;
/* rgb */ color: rgb(64, 71, 202);
/* oklch */ color: oklch(47.8% 0.199 273.7);
Tailwind
colors: {
  custom: {
    50: '#867adb',
    500: '#4047ca',
    950: '#000000',
  },
}
SCSS
$custom: #4047ca;
$custom-light: #867adb;
$custom-dark: #000000;
JSON
{
  "hex": "#4047ca",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 236.957,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47802,
    "c": 0.19897,
    "h": 273.7
  },
  "luminance": 0.09861
}

Semantic roles & 50–950 ramp

primary
#4047CA
secondary
#D1CE95
accent
#D848E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4047CA

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

Preview Lab → · Contrast checker → · Palette generator →

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