#4038C3#4038C3

#4038C3 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.8% C 0.207 H 276.6°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4038C3
RGBrgb(64, 56, 195)
HSLhsl(243, 55%, 49%)
HSVhsv(243, 71%, 76%)
CMYKcmyk(67.2%, 71.3%, 0%, 23.5%)
CIE-LABlab(33.68, 45.92, -71.10)
CIE-LCHlch(33.68, 84.64, 302.86°)
OKLaboklab(44.79% 0.0237 -0.2054)
OKLCHoklch(44.79% 0.207 276.6)
XYZxyz(13.3756, 7.8573, 52.4309)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038C3 #BBC338
analogous
#3876C3 #4038C3 #8638C3
triadic
#4038C3 #C34038 #38C340
tetradic
#4038C3 #C33876 #BBC338 #38C386
square
#4038C3 #C33876 #BBC338 #38C386
split-complementary
#4038C3 #C38638 #76C338
monochromatic
#211D64 #302A93 #4038C3 #6C65D3 #9995E1

Accessibility & contrast

On white

8.17
#4038C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4038C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038C3
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038C3#FFFFFF#000000##FFFFFF
##4038C31.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4038c3;
/* rgb */ color: rgb(64, 56, 195);
/* oklch */ color: oklch(44.8% 0.207 276.6);
Tailwind
colors: {
  custom: {
    50: '#8670d6',
    500: '#4038c3',
    950: '#000000',
  },
}
SCSS
$custom: #4038c3;
$custom-light: #8670d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4038c3",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 243.453,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44789,
    "c": 0.20674,
    "h": 276.6
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#4038C3
secondary
#C8CC8B
accent
#DF49D6
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4038C3

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

Preview Lab → · Contrast checker → · Palette generator →

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