#4038BC#4038BC

#4038BC is a dark, vivid blue. Relative luminance 0.075; OKLCH L 44.1% C 0.198 H 277.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#4038BC
RGBrgb(64, 56, 188)
HSLhsl(244, 54%, 48%)
HSVhsv(244, 70%, 74%)
CMYKcmyk(66%, 70.2%, 0%, 26.3%)
CIE-LABlab(33.02, 43.66, -68.07)
CIE-LCHlch(33.02, 80.87, 302.67°)
OKLaboklab(44.12% 0.0248 -0.1965)
OKLCHoklch(44.12% 0.198 277.2)
XYZxyz(12.6027, 7.5481, 48.3600)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038BC #B4BC38
analogous
#3872BC #4038BC #8238BC
triadic
#4038BC #BC4038 #38BC40
tetradic
#4038BC #BC3872 #B4BC38 #38BC82
square
#4038BC #BC3872 #B4BC38 #38BC82
split-complementary
#4038BC #BC8238 #72BC38
monochromatic
#201C5E #302A8D #4038BC #6861D0 #9590DE

Accessibility & contrast

On white

8.37
#4038BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4038BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038BC
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038BC#FFFFFF#000000##FFFFFF
##4038BC1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#005C76
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4038bc;
/* rgb */ color: rgb(64, 56, 188);
/* oklch */ color: oklch(44.1% 0.198 277.2);
Tailwind
colors: {
  custom: {
    50: '#8570d1',
    500: '#4038bc',
    950: '#000000',
  },
}
SCSS
$custom: #4038bc;
$custom-light: #8570d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4038bc",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 243.636,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44117,
    "c": 0.19809,
    "h": 277.2
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#4038BC
secondary
#C5C987
accent
#DD4AD5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #4038BC

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

Preview Lab → · Contrast checker → · Palette generator →

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