#4038C5#4038C5

#4038C5 is a dark, highly saturated blue. Relative luminance 0.080; OKLCH L 45.0% C 0.209 H 276.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4038C5
RGBrgb(64, 56, 197)
HSLhsl(243, 56%, 50%)
HSVhsv(243, 72%, 77%)
CMYKcmyk(67.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(33.88, 46.56, -71.96)
CIE-LCHlch(33.88, 85.71, 302.91°)
OKLaboklab(44.98% 0.0233 -0.2079)
OKLCHoklch(44.98% 0.209 276.4)
XYZxyz(13.6033, 7.9483, 53.6298)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C5 #BDC538
analogous
#3877C5 #4038C5 #8638C5
triadic
#4038C5 #C54038 #38C540
tetradic
#4038C5 #C53877 #BDC538 #38C586
square
#4038C5 #C53877 #BDC538 #38C586
split-complementary
#4038C5 #C58638 #77C538
monochromatic
#211D66 #312A95 #4038C5 #6D67D4 #9A96E1

Accessibility & contrast

On white

8.11
#4038C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4038C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C5
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C5#FFFFFF#000000##FFFFFF
##4038C51.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0049C2
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4038c5;
/* rgb */ color: rgb(64, 56, 197);
/* oklch */ color: oklch(45.0% 0.209 276.4);
Tailwind
colors: {
  custom: {
    50: '#8670d8',
    500: '#4038c5',
    950: '#000000',
  },
}
SCSS
$custom: #4038c5;
$custom-light: #8670d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c5",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 243.404,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44983,
    "c": 0.20918,
    "h": 276.4
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

primary
#4038C5
secondary
#C9CD8C
accent
#DF49D7
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038C5

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

Preview Lab → · Contrast checker → · Palette generator →

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