#4038CA#4038CA

#4038CA is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.5% C 0.215 H 276.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#4038CA
RGBrgb(64, 56, 202)
HSLhsl(243, 58%, 51%)
HSVhsv(243, 72%, 79%)
CMYKcmyk(68.3%, 72.3%, 0%, 20.8%)
CIE-LABlab(34.36, 48.16, -74.08)
CIE-LCHlch(34.36, 88.36, 303.03°)
OKLaboklab(45.47% 0.0224 -0.2141)
OKLCHoklch(45.47% 0.215 276)
XYZxyz(14.1857, 8.1813, 56.6972)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038CA #C2CA38
analogous
#3879CA #4038CA #8938CA
triadic
#4038CA #CA4038 #38CA40
tetradic
#4038CA #CA3879 #C2CA38 #38CA89
square
#4038CA #CA3879 #C2CA38 #38CA89
split-complementary
#4038CA #CA8938 #79CA38
monochromatic
#211D6B #30299B #4038CA #6E68D7 #9D99E4

Accessibility & contrast

On white

7.96
#4038CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4038CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038CA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038CA#FFFFFF#000000##FFFFFF
##4038CA1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004AC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4038ca;
/* rgb */ color: rgb(64, 56, 202);
/* oklch */ color: oklch(45.5% 0.215 276.0);
Tailwind
colors: {
  custom: {
    50: '#8770db',
    500: '#4038ca',
    950: '#000000',
  },
}
SCSS
$custom: #4038ca;
$custom-light: #8770db;
$custom-dark: #000000;
JSON
{
  "hex": "#4038ca",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 243.288,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45473,
    "c": 0.21525,
    "h": 276
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#4038CA
secondary
#CCCF8E
accent
#E147D9
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038CA

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

Preview Lab → · Contrast checker → · Palette generator →

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