#4047C8#4047C8

#4047C8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.6% C 0.196 H 273.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4047C8
RGBrgb(64, 71, 200)
HSLhsl(237, 55%, 52%)
HSVhsv(237, 68%, 78%)
CMYKcmyk(68%, 64.5%, 0%, 21.6%)
CIE-LABlab(37.42, 38.68, -67.89)
CIE-LCHlch(37.42, 78.14, 299.67°)
OKLaboklab(47.63% 0.0129 -0.196)
OKLCHoklch(47.63% 0.196 273.8)
XYZxyz(14.7894, 9.7652, 55.7379)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047C8 #C8C140
analogous
#408BC8 #4047C8 #7D40C8
triadic
#4047C8 #C84047 #47C840
tetradic
#4047C8 #C8408B #C8C140 #40C87D
square
#4047C8 #C8408B #C8C140 #40C87D
split-complementary
#4047C8 #C87D40 #8BC840
monochromatic
#20246E #2D339D #4047C8 #7075D6 #9FA3E3

Accessibility & contrast

On white

7.11
#4047C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4047C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4047C8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047C8#FFFFFF#000000##FFFFFF
##4047C81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0052C6
Tritanopia (blue-blind)
#006981
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4047c8;
/* rgb */ color: rgb(64, 71, 200);
/* oklch */ color: oklch(47.6% 0.196 273.8);
Tailwind
colors: {
  custom: {
    50: '#867ada',
    500: '#4047c8',
    950: '#000000',
  },
}
SCSS
$custom: #4047c8;
$custom-light: #867ada;
$custom-dark: #000000;
JSON
{
  "hex": "#4047c8",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 200
  },
  "hsl": {
    "h": 236.912,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.1964,
    "h": 273.8
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

primary
#4047C8
secondary
#D0CD94
accent
#D749DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4047C8

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

Preview Lab → · Contrast checker → · Palette generator →

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