#4038CB#4038CB

#4038CB is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.6% C 0.216 H 275.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4038CB
RGBrgb(64, 56, 203)
HSLhsl(243, 59%, 51%)
HSVhsv(243, 72%, 80%)
CMYKcmyk(68.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(34.45, 48.48, -74.50)
CIE-LCHlch(34.45, 88.89, 303.05°)
OKLaboklab(45.57% 0.0223 -0.2153)
OKLCHoklch(45.57% 0.216 275.9)
XYZxyz(14.3045, 8.2288, 57.3228)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038CB #C3CB38
analogous
#3879CB #4038CB #8938CB
triadic
#4038CB #CB4038 #38CB40
tetradic
#4038CB #CB3879 #C3CB38 #38CB89
square
#4038CB #CB3879 #C3CB38 #38CB89
split-complementary
#4038CB #CB8938 #79CB38
monochromatic
#211C6C #2F299D #4038CB #6F69D8 #9D99E4

Accessibility & contrast

On white

7.94
#4038CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4038CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038CB
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038CB#FFFFFF#000000##FFFFFF
##4038CB1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CF
Deuteranopia (green-blind)
#004AC8
Tritanopia (blue-blind)
#00627E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4038cb;
/* rgb */ color: rgb(64, 56, 203);
/* oklch */ color: oklch(45.6% 0.216 275.9);
Tailwind
colors: {
  custom: {
    50: '#8871dc',
    500: '#4038cb',
    950: '#000000',
  },
}
SCSS
$custom: #4038cb;
$custom-light: #8871dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4038cb",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 243.265,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.21646,
    "h": 275.9
  },
  "luminance": 0.0823
}

Semantic roles & 50–950 ramp

primary
#4038CB
secondary
#CCD08F
accent
#E246D9
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038CB

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

Preview Lab → · Contrast checker → · Palette generator →

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