#4038C8#4038C8

#4038C8 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.3% C 0.213 H 276.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#4038C8
RGBrgb(64, 56, 200)
HSLhsl(243, 57%, 50%)
HSVhsv(243, 72%, 78%)
CMYKcmyk(68%, 72%, 0%, 21.6%)
CIE-LABlab(34.16, 47.52, -73.23)
CIE-LCHlch(34.16, 87.30, 302.98°)
OKLaboklab(45.28% 0.0228 -0.2116)
OKLCHoklch(45.28% 0.213 276.1)
XYZxyz(13.9504, 8.0872, 55.4582)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C8 #C0C838
analogous
#3878C8 #4038C8 #8838C8
triadic
#4038C8 #C84038 #38C840
tetradic
#4038C8 #C83878 #C0C838 #38C888
square
#4038C8 #C83878 #C0C838 #38C888
split-complementary
#4038C8 #C88838 #78C838
monochromatic
#211D69 #302A99 #4038C8 #6E68D5 #9C98E3

Accessibility & contrast

On white

8.02
#4038C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4038C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C8
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C8#FFFFFF#000000##FFFFFF
##4038C81.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4038c8;
/* rgb */ color: rgb(64, 56, 200);
/* oklch */ color: oklch(45.3% 0.213 276.1);
Tailwind
colors: {
  custom: {
    50: '#8770da',
    500: '#4038c8',
    950: '#000000',
  },
}
SCSS
$custom: #4038c8;
$custom-light: #8770da;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c8",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 243.333,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45276,
    "c": 0.21283,
    "h": 276.1
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#4038C8
secondary
#CBCE8E
accent
#E048D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038C8

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

Preview Lab → · Contrast checker → · Palette generator →

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