#4039AF#4039AF

#4039AF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.180 H 278.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4039AF
RGBrgb(64, 57, 175)
HSLhsl(244, 51%, 45%)
HSVhsv(244, 67%, 69%)
CMYKcmyk(63.4%, 67.4%, 0%, 31.4%)
CIE-LABlab(32.06, 38.81, -61.95)
CIE-LCHlch(32.06, 73.10, 302.07°)
OKLaboklab(43.06% 0.026 -0.1786)
OKLCHoklch(43.06% 0.18 278.3)
XYZxyz(11.3129, 7.1105, 41.3254)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4039AF #A8AF39
analogous
#396DAF #4039AF #7B39AF
triadic
#4039AF #AF4039 #39AF40
tetradic
#4039AF #AF396D #A8AF39 #39AF7B
square
#4039AF #AF396D #A8AF39 #39AF7B
split-complementary
#4039AF #AF7B39 #6DAF39
monochromatic
#1E1B53 #2F2A81 #4039AF #625BCA #8E8AD9

Accessibility & contrast

On white

8.67
#4039AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4039AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4039AF
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4039AF#FFFFFF#000000##FFFFFF
##4039AF1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4039af;
/* rgb */ color: rgb(64, 57, 175);
/* oklch */ color: oklch(43.1% 0.180 278.3);
Tailwind
colors: {
  custom: {
    50: '#8270c8',
    500: '#4039af',
    950: '#000000',
  },
}
SCSS
$custom: #4039af;
$custom-light: #8270c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4039af",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 175
  },
  "hsl": {
    "h": 243.559,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.18049,
    "h": 278.3
  },
  "luminance": 0.07111
}

Semantic roles & 50–950 ramp

primary
#4039AF
secondary
#BFC381
accent
#DA4DD2
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4039AF

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

Preview Lab → · Contrast checker → · Palette generator →

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