#4039AC#4039AC

#4039AC is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.177 H 278.6°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#4039AC
RGBrgb(64, 57, 172)
HSLhsl(244, 50%, 45%)
HSVhsv(244, 67%, 67%)
CMYKcmyk(62.8%, 66.9%, 0%, 32.5%)
CIE-LABlab(31.79, 37.82, -60.59)
CIE-LCHlch(31.79, 71.42, 301.97°)
OKLaboklab(42.79% 0.0263 -0.1746)
OKLCHoklch(42.79% 0.177 278.6)
XYZxyz(11.0215, 6.9939, 39.7909)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039AC #A5AC39
analogous
#396CAC #4039AC #7939AC
triadic
#4039AC #AC4039 #39AC40
tetradic
#4039AC #AC396C #A5AC39 #39AC79
square
#4039AC #AC396C #A5AC39 #39AC79
split-complementary
#4039AC #AC7939 #6CAC39
monochromatic
#1E1B50 #2F2A7E #4039AC #615AC8 #8D88D8

Accessibility & contrast

On white

8.75
#4039AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4039AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039AC
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039AC#FFFFFF#000000##FFFFFF
##4039AC1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4039ac;
/* rgb */ color: rgb(64, 57, 172);
/* oklch */ color: oklch(42.8% 0.177 278.6);
Tailwind
colors: {
  custom: {
    50: '#8170c6',
    500: '#4039ac',
    950: '#000000',
  },
}
SCSS
$custom: #4039ac;
$custom-light: #8170c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4039ac",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 172
  },
  "hsl": {
    "h": 243.652,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42787,
    "c": 0.1766,
    "h": 278.6
  },
  "luminance": 0.06995
}

Semantic roles & 50–950 ramp

primary
#4039AC
secondary
#BEC27F
accent
#DA4ED1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4039AC

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

Preview Lab → · Contrast checker → · Palette generator →

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