#4039B0#4039B0

#4039B0 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.2% C 0.182 H 278.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4039B0
RGBrgb(64, 57, 176)
HSLhsl(244, 51%, 46%)
HSVhsv(244, 68%, 69%)
CMYKcmyk(63.6%, 67.6%, 0%, 31%)
CIE-LABlab(32.15, 39.14, -62.40)
CIE-LCHlch(32.15, 73.66, 302.10°)
OKLaboklab(43.15% 0.0259 -0.1799)
OKLCHoklch(43.15% 0.182 278.2)
XYZxyz(11.4114, 7.1499, 41.8446)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039B0 #A9B039
analogous
#396EB0 #4039B0 #7B39B0
triadic
#4039B0 #B04039 #39B040
tetradic
#4039B0 #B0396E #A9B039 #39B07B
square
#4039B0 #B0396E #A9B039 #39B07B
split-complementary
#4039B0 #B07B39 #6EB039
monochromatic
#1E1B54 #2F2A82 #4039B0 #625CCA #8F8AD9

Accessibility & contrast

On white

8.64
#4039B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4039B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039B0
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039B0#FFFFFF#000000##FFFFFF
##4039B01.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4039b0;
/* rgb */ color: rgb(64, 57, 176);
/* oklch */ color: oklch(43.2% 0.182 278.2);
Tailwind
colors: {
  custom: {
    50: '#8270c9',
    500: '#4039b0',
    950: '#000000',
  },
}
SCSS
$custom: #4039b0;
$custom-light: #8270c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4039b0",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 243.529,
    "s": 51.073,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43151,
    "c": 0.18178,
    "h": 278.2
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#4039B0
secondary
#C0C481
accent
#DB4DD2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4039B0

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

Preview Lab → · Contrast checker → · Palette generator →

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