#4039C2#4039C2

#4039C2 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.8% C 0.204 H 276.5°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#4039C2
RGBrgb(64, 57, 194)
HSLhsl(243, 55%, 49%)
HSVhsv(243, 71%, 76%)
CMYKcmyk(67%, 70.6%, 0%, 23.9%)
CIE-LABlab(33.80, 45.03, -70.33)
CIE-LCHlch(33.80, 83.51, 302.63°)
OKLaboklab(44.84% 0.0232 -0.2031)
OKLCHoklch(44.84% 0.204 276.5)
XYZxyz(13.3119, 7.9101, 51.8538)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039C2 #BBC239
analogous
#3977C2 #4039C2 #8539C2
triadic
#4039C2 #C24039 #39C240
tetradic
#4039C2 #C23977 #BBC239 #39C285
square
#4039C2 #C23977 #BBC239 #39C285
split-complementary
#4039C2 #C28539 #77C239
monochromatic
#211D63 #302B93 #4039C2 #6C66D2 #9995E0

Accessibility & contrast

On white

8.13
#4039C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4039C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039C2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039C2#FFFFFF#000000##FFFFFF
##4039C21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#005F79
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4039c2;
/* rgb */ color: rgb(64, 57, 194);
/* oklch */ color: oklch(44.8% 0.204 276.5);
Tailwind
colors: {
  custom: {
    50: '#8671d6',
    500: '#4039c2',
    950: '#000000',
  },
}
SCSS
$custom: #4039c2;
$custom-light: #8671d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4039c2",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 194
  },
  "hsl": {
    "h": 243.066,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4484,
    "c": 0.20446,
    "h": 276.5
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#4039C2
secondary
#C8CB8B
accent
#DE4AD6
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0D0814
muted
#7D7B83

Preview Lab

Preview with #4039C2

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

Preview Lab → · Contrast checker → · Palette generator →

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