#4039CA#4039CA

#4039CA is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.6% C 0.214 H 275.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#4039CA
RGBrgb(64, 57, 202)
HSLhsl(243, 58%, 51%)
HSVhsv(243, 72%, 79%)
CMYKcmyk(68.3%, 71.8%, 0%, 20.8%)
CIE-LABlab(34.56, 47.60, -73.75)
CIE-LCHlch(34.56, 87.78, 302.84°)
OKLaboklab(45.62% 0.0218 -0.2131)
OKLCHoklch(45.62% 0.214 275.9)
XYZxyz(14.2346, 8.2792, 56.7136)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039CA #C3CA39
analogous
#397ACA #4039CA #8939CA
triadic
#4039CA #CA4039 #39CA40
tetradic
#4039CA #CA397A #C3CA39 #39CA89
square
#4039CA #CA397A #C3CA39 #39CA89
split-complementary
#4039CA #CA8939 #7ACA39
monochromatic
#211D6C #2F2A9C #4039CA #6F69D7 #9D9AE4

Accessibility & contrast

On white

7.91
#4039CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4039CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039CA
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039CA#FFFFFF#000000##FFFFFF
##4039CA1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004BC7
Tritanopia (blue-blind)
#00627E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4039ca;
/* rgb */ color: rgb(64, 57, 202);
/* oklch */ color: oklch(45.6% 0.214 275.9);
Tailwind
colors: {
  custom: {
    50: '#8771db',
    500: '#4039ca',
    950: '#000000',
  },
}
SCSS
$custom: #4039ca;
$custom-light: #8771db;
$custom-dark: #000000;
JSON
{
  "hex": "#4039ca",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 242.897,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45615,
    "c": 0.21424,
    "h": 275.9
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#4039CA
secondary
#CCD08F
accent
#E147DA
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039CA

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

Preview Lab → · Contrast checker → · Palette generator →

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