#4038C6#4038C6

#4038C6 is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.1% C 0.210 H 276.3°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#4038C6
RGBrgb(64, 56, 198)
HSLhsl(243, 56%, 50%)
HSVhsv(243, 72%, 78%)
CMYKcmyk(67.7%, 71.7%, 0%, 22.4%)
CIE-LABlab(33.97, 46.88, -72.38)
CIE-LCHlch(33.97, 86.24, 302.93°)
OKLaboklab(45.08% 0.0231 -0.2091)
OKLCHoklch(45.08% 0.21 276.3)
XYZxyz(13.7182, 7.9943, 54.2352)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C6 #BEC638
analogous
#3877C6 #4038C6 #8738C6
triadic
#4038C6 #C64038 #38C640
tetradic
#4038C6 #C63877 #BEC638 #38C687
square
#4038C6 #C63877 #BEC638 #38C687
split-complementary
#4038C6 #C68738 #77C638
monochromatic
#211D67 #312B96 #4038C6 #6D67D4 #9B97E2

Accessibility & contrast

On white

8.08
#4038C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4038C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C6
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C6#FFFFFF#000000##FFFFFF
##4038C61.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4038c6;
/* rgb */ color: rgb(64, 56, 198);
/* oklch */ color: oklch(45.1% 0.210 276.3);
Tailwind
colors: {
  custom: {
    50: '#8770d9',
    500: '#4038c6',
    950: '#000000',
  },
}
SCSS
$custom: #4038c6;
$custom-light: #8770d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c6",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 243.38,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45081,
    "c": 0.21041,
    "h": 276.3
  },
  "luminance": 0.07996
}

Semantic roles & 50–950 ramp

primary
#4038C6
secondary
#C9CD8D
accent
#DF49D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038C6

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

Preview Lab → · Contrast checker → · Palette generator →

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