#4038C0#4038C0

#4038C0 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.5% C 0.203 H 276.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#4038C0
RGBrgb(64, 56, 192)
HSLhsl(244, 55%, 49%)
HSVhsv(244, 71%, 75%)
CMYKcmyk(66.7%, 70.8%, 0%, 24.7%)
CIE-LABlab(33.40, 44.95, -69.81)
CIE-LCHlch(33.40, 83.03, 302.78°)
OKLaboklab(44.5% 0.0242 -0.2016)
OKLCHoklch(44.5% 0.203 276.8)
XYZxyz(13.0399, 7.7230, 50.6624)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C0 #B8C038
analogous
#3874C0 #4038C0 #8438C0
triadic
#4038C0 #C04038 #38C040
tetradic
#4038C0 #C03874 #B8C038 #38C084
square
#4038C0 #C03874 #B8C038 #38C084
split-complementary
#4038C0 #C08438 #74C038
monochromatic
#201C61 #302A91 #4038C0 #6A64D2 #9793DF

Accessibility & contrast

On white

8.25
#4038C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4038C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C0
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C0#FFFFFF#000000##FFFFFF
##4038C01.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C4
Deuteranopia (green-blind)
#0049BD
Tritanopia (blue-blind)
#005D78
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4038c0;
/* rgb */ color: rgb(64, 56, 192);
/* oklch */ color: oklch(44.5% 0.203 276.8);
Tailwind
colors: {
  custom: {
    50: '#8570d4',
    500: '#4038c0',
    950: '#000000',
  },
}
SCSS
$custom: #4038c0;
$custom-light: #8570d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c0",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 243.529,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.445,
    "c": 0.20305,
    "h": 276.8
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#4038C0
secondary
#C7CB89
accent
#DE4AD5
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0D0714
muted
#7D7A83

Preview Lab

Preview with #4038C0

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

Preview Lab → · Contrast checker → · Palette generator →

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