#4038D1#4038D1

#4038D1 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.2% C 0.224 H 275.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#4038D1
RGBrgb(64, 56, 209)
HSLhsl(243, 62%, 52%)
HSVhsv(243, 73%, 82%)
CMYKcmyk(69.4%, 73.2%, 0%, 18%)
CIE-LABlab(35.04, 50.38, -77.01)
CIE-LCHlch(35.04, 92.03, 303.19°)
OKLaboklab(46.17% 0.0211 -0.2226)
OKLCHoklch(46.17% 0.224 275.4)
XYZxyz(15.0334, 8.5204, 61.1616)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038D1 #C9D138
analogous
#387DD1 #4038D1 #8C38D1
triadic
#4038D1 #D14038 #38D140
tetradic
#4038D1 #D1387D #C9D138 #38D18C
square
#4038D1 #D1387D #C9D138 #38D18C
split-complementary
#4038D1 #D18C38 #7DD138
monochromatic
#1F1B74 #2D26A6 #4038D1 #706ADC #9F9BE8

Accessibility & contrast

On white

7.77
#4038D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4038D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038D1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038D1#FFFFFF#000000##FFFFFF
##4038D11.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D5
Deuteranopia (green-blind)
#004BCE
Tritanopia (blue-blind)
#006481
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4038d1;
/* rgb */ color: rgb(64, 56, 209);
/* oklch */ color: oklch(46.2% 0.224 275.4);
Tailwind
colors: {
  custom: {
    50: '#8971e0',
    500: '#4038d1',
    950: '#000000',
  },
}
SCSS
$custom: #4038d1;
$custom-light: #8971e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4038d1",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 243.137,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46166,
    "c": 0.22364,
    "h": 275.4
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#4038D1
secondary
#D0D491
accent
#E642DD
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4038D1

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

Preview Lab → · Contrast checker → · Palette generator →

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