#4039CB#4039CB

#4039CB is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.215 H 275.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#4039CB
RGBrgb(64, 57, 203)
HSLhsl(243, 58%, 51%)
HSVhsv(243, 72%, 80%)
CMYKcmyk(68.5%, 71.9%, 0%, 20.4%)
CIE-LABlab(34.65, 47.92, -74.17)
CIE-LCHlch(34.65, 88.31, 302.87°)
OKLaboklab(45.71% 0.0217 -0.2144)
OKLCHoklch(45.71% 0.215 275.8)
XYZxyz(14.3534, 8.3267, 57.3391)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039CB #C4CB39
analogous
#397BCB #4039CB #8939CB
triadic
#4039CB #CB4039 #39CB40
tetradic
#4039CB #CB397B #C4CB39 #39CB89
square
#4039CB #CB397B #C4CB39 #39CB89
split-complementary
#4039CB #CB8939 #7BCB39
monochromatic
#201D6D #2F299D #4039CB #6F69D8 #9E9AE4

Accessibility & contrast

On white

7.88
#4039CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4039CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039CB
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039CB#FFFFFF#000000##FFFFFF
##4039CB1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4039cb;
/* rgb */ color: rgb(64, 57, 203);
/* oklch */ color: oklch(45.7% 0.215 275.8);
Tailwind
colors: {
  custom: {
    50: '#8871dc',
    500: '#4039cb',
    950: '#000000',
  },
}
SCSS
$custom: #4039cb;
$custom-light: #8871dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4039cb",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 203
  },
  "hsl": {
    "h": 242.877,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.21545,
    "h": 275.8
  },
  "luminance": 0.08328
}

Semantic roles & 50–950 ramp

primary
#4039CB
secondary
#CDD090
accent
#E246DA
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4039CB

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

Preview Lab → · Contrast checker → · Palette generator →

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