#4038C4#4038C4

#4038C4 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.9% C 0.208 H 276.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#4038C4
RGBrgb(64, 56, 196)
HSLhsl(243, 56%, 49%)
HSVhsv(243, 71%, 77%)
CMYKcmyk(67.3%, 71.4%, 0%, 23.1%)
CIE-LABlab(33.78, 46.24, -71.53)
CIE-LCHlch(33.78, 85.17, 302.88°)
OKLaboklab(44.89% 0.0235 -0.2066)
OKLCHoklch(44.89% 0.208 276.5)
XYZxyz(13.4891, 7.9027, 53.0284)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C4 #BCC438
analogous
#3876C4 #4038C4 #8638C4
triadic
#4038C4 #C44038 #38C440
tetradic
#4038C4 #C43876 #BCC438 #38C486
square
#4038C4 #C43876 #BCC438 #38C486
split-complementary
#4038C4 #C48638 #76C438
monochromatic
#211D65 #302A94 #4038C4 #6C66D3 #9A96E1

Accessibility & contrast

On white

8.14
#4038C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4038C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C4
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C4#FFFFFF#000000##FFFFFF
##4038C41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C8
Deuteranopia (green-blind)
#0049C1
Tritanopia (blue-blind)
#005F7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4038c4;
/* rgb */ color: rgb(64, 56, 196);
/* oklch */ color: oklch(44.9% 0.208 276.5);
Tailwind
colors: {
  custom: {
    50: '#8670d7',
    500: '#4038c4',
    950: '#000000',
  },
}
SCSS
$custom: #4038c4;
$custom-light: #8670d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c4",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 243.429,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.44886,
    "c": 0.20797,
    "h": 276.5
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#4038C4
secondary
#C9CC8C
accent
#DF49D6
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038C4

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

Preview Lab → · Contrast checker → · Palette generator →

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