#4038BF#4038BF

#4038BF is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.4% C 0.202 H 276.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#4038BF
RGBrgb(64, 56, 191)
HSLhsl(244, 55%, 48%)
HSVhsv(244, 71%, 75%)
CMYKcmyk(66.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(33.30, 44.63, -69.38)
CIE-LCHlch(33.30, 82.49, 302.75°)
OKLaboklab(44.4% 0.0243 -0.2003)
OKLCHoklch(44.4% 0.202 276.9)
XYZxyz(12.9294, 7.6788, 50.0809)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038BF #B7BF38
analogous
#3873BF #4038BF #8438BF
triadic
#4038BF #BF4038 #38BF40
tetradic
#4038BF #BF3873 #B7BF38 #38BF84
square
#4038BF #BF3873 #B7BF38 #38BF84
split-complementary
#4038BF #BF8438 #73BF38
monochromatic
#201C60 #302A90 #4038BF #6963D1 #9792DF

Accessibility & contrast

On white

8.28
#4038BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4038BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038BF
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038BF#FFFFFF#000000##FFFFFF
##4038BF1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#0048BC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4038bf;
/* rgb */ color: rgb(64, 56, 191);
/* oklch */ color: oklch(44.4% 0.202 276.9);
Tailwind
colors: {
  custom: {
    50: '#8570d3',
    500: '#4038bf',
    950: '#000000',
  },
}
SCSS
$custom: #4038bf;
$custom-light: #8570d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4038bf",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 243.556,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44404,
    "c": 0.20182,
    "h": 276.9
  },
  "luminance": 0.0768
}

Semantic roles & 50–950 ramp

primary
#4038BF
secondary
#C6CA89
accent
#DE4AD5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #4038BF

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

Preview Lab → · Contrast checker → · Palette generator →

#4038BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva