#4047CB#4047CB

#4047CB is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 47.9% C 0.200 H 273.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#4047CB
RGBrgb(64, 71, 203)
HSLhsl(237, 57%, 52%)
HSVhsv(237, 68%, 80%)
CMYKcmyk(68.5%, 65%, 0%, 20.4%)
CIE-LABlab(37.67, 39.70, -69.21)
CIE-LCHlch(37.67, 79.79, 299.84°)
OKLaboklab(47.89% 0.0127 -0.1998)
OKLCHoklch(47.89% 0.2 273.6)
XYZxyz(15.1435, 9.9068, 57.6025)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047CB #CBC440
analogous
#408DCB #4047CB #7E40CB
triadic
#4047CB #CB4047 #47CB40
tetradic
#4047CB #CB408D #CBC440 #40CB7E
square
#4047CB #CB408D #CBC440 #40CB7E
split-complementary
#4047CB #CB7E40 #8DCB40
monochromatic
#1F2372 #2C32A2 #4047CB #7075D8 #A0A4E5

Accessibility & contrast

On white

7.04
#4047CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4047CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047CB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047CB#FFFFFF#000000##FFFFFF
##4047CB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006A83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4047cb;
/* rgb */ color: rgb(64, 71, 203);
/* oklch */ color: oklch(47.9% 0.200 273.6);
Tailwind
colors: {
  custom: {
    50: '#867adc',
    500: '#4047cb',
    950: '#000000',
  },
}
SCSS
$custom: #4047cb;
$custom-light: #867adc;
$custom-dark: #000000;
JSON
{
  "hex": "#4047cb",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 236.978,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47891,
    "c": 0.20025,
    "h": 273.6
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#4047CB
secondary
#D2CF95
accent
#D947E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4047CB

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

Preview Lab → · Contrast checker → · Palette generator →

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