#4038CF#4038CF

#4038CF is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 46.0% C 0.221 H 275.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#4038CF
RGBrgb(64, 56, 207)
HSLhsl(243, 61%, 52%)
HSVhsv(243, 73%, 81%)
CMYKcmyk(69.1%, 72.9%, 0%, 18.8%)
CIE-LABlab(34.85, 49.75, -76.18)
CIE-LCHlch(34.85, 90.99, 303.15°)
OKLaboklab(45.97% 0.0215 -0.2202)
OKLCHoklch(45.97% 0.221 275.6)
XYZxyz(14.7873, 8.4220, 59.8657)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038CF #C7CF38
analogous
#387CCF #4038CF #8C38CF
triadic
#4038CF #CF4038 #38CF40
tetradic
#4038CF #CF387C #C7CF38 #38CF8C
square
#4038CF #CF387C #C7CF38 #38CF8C
split-complementary
#4038CF #CF8C38 #7CCF38
monochromatic
#201B71 #2E27A3 #4038CF #6F69DB #9F9BE7

Accessibility & contrast

On white

7.82
#4038CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4038CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038CF
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038CF#FFFFFF#000000##FFFFFF
##4038CF1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#004BCC
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4038cf;
/* rgb */ color: rgb(64, 56, 207);
/* oklch */ color: oklch(46.0% 0.221 275.6);
Tailwind
colors: {
  custom: {
    50: '#8971df',
    500: '#4038cf',
    950: '#000000',
  },
}
SCSS
$custom: #4038cf;
$custom-light: #8971df;
$custom-dark: #000000;
JSON
{
  "hex": "#4038cf",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 243.179,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.45967,
    "c": 0.22126,
    "h": 275.6
  },
  "luminance": 0.08423
}

Semantic roles & 50–950 ramp

primary
#4038CF
secondary
#CFD390
accent
#E444DC
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038CF

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

Preview Lab → · Contrast checker → · Palette generator →

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