#4038C2#4038C2

#4038C2 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.7% C 0.206 H 276.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#4038C2
RGBrgb(64, 56, 194)
HSLhsl(243, 55%, 49%)
HSVhsv(243, 71%, 76%)
CMYKcmyk(67%, 71.1%, 0%, 23.9%)
CIE-LABlab(33.59, 45.60, -70.67)
CIE-LCHlch(33.59, 84.10, 302.83°)
OKLaboklab(44.69% 0.0238 -0.2041)
OKLCHoklch(44.69% 0.206 276.7)
XYZxyz(13.2630, 7.8122, 51.8374)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C2 #BAC238
analogous
#3875C2 #4038C2 #8538C2
triadic
#4038C2 #C24038 #38C240
tetradic
#4038C2 #C23875 #BAC238 #38C285
square
#4038C2 #C23875 #BAC238 #38C285
split-complementary
#4038C2 #C28538 #75C238
monochromatic
#211D63 #302A93 #4038C2 #6B65D2 #9994E0

Accessibility & contrast

On white

8.19
#4038C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4038C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C2
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C2#FFFFFF#000000##FFFFFF
##4038C21.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#005E79
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4038c2;
/* rgb */ color: rgb(64, 56, 194);
/* oklch */ color: oklch(44.7% 0.206 276.7);
Tailwind
colors: {
  custom: {
    50: '#8670d6',
    500: '#4038c2',
    950: '#000000',
  },
}
SCSS
$custom: #4038c2;
$custom-light: #8670d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c2",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 243.478,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.44692,
    "c": 0.20552,
    "h": 276.7
  },
  "luminance": 0.07813
}

Semantic roles & 50–950 ramp

primary
#4038C2
secondary
#C8CB8A
accent
#DF49D6
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #4038C2

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

Preview Lab → · Contrast checker → · Palette generator →

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