#4047CF#4047CF

#4047CF is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.3% C 0.205 H 273.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#4047CF
RGBrgb(64, 71, 207)
HSLhsl(237, 60%, 53%)
HSVhsv(237, 69%, 81%)
CMYKcmyk(69.1%, 65.7%, 0%, 18.8%)
CIE-LABlab(38.02, 41.06, -70.96)
CIE-LCHlch(38.02, 81.98, 300.06°)
OKLaboklab(48.25% 0.0123 -0.205)
OKLCHoklch(48.25% 0.205 273.4)
XYZxyz(15.6263, 10.1000, 60.1454)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4047CF #CFC840
analogous
#408ECF #4047CF #8040CF
triadic
#4047CF #CF4047 #47CF40
tetradic
#4047CF #CF408E #CFC840 #40CF80
square
#4047CF #CF408E #CFC840 #40CF80
split-complementary
#4047CF #CF8040 #8ECF40
monochromatic
#1E2277 #2A30A8 #4047CF #7176DB #A2A5E8

Accessibility & contrast

On white

6.95
#4047CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4047CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4047CF
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4047CF#FFFFFF#000000##FFFFFF
##4047CF1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#006B85
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4047cf;
/* rgb */ color: rgb(64, 71, 207);
/* oklch */ color: oklch(48.3% 0.205 273.4);
Tailwind
colors: {
  custom: {
    50: '#877adf',
    500: '#4047cf',
    950: '#000000',
  },
}
SCSS
$custom: #4047cf;
$custom-light: #877adf;
$custom-dark: #000000;
JSON
{
  "hex": "#4047cf",
  "rgb": {
    "r": 64,
    "g": 71,
    "b": 207
  },
  "hsl": {
    "h": 237.063,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4825,
    "c": 0.20534,
    "h": 273.4
  },
  "luminance": 0.10101
}

Semantic roles & 50–950 ramp

primary
#4047CF
secondary
#D4D197
accent
#DB45E3
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4047CF

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

Preview Lab → · Contrast checker → · Palette generator →

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