#4038D9#4038D9

#4038D9 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 47.0% C 0.233 H 274.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#4038D9
RGBrgb(64, 56, 217)
HSLhsl(243, 68%, 54%)
HSVhsv(243, 74%, 85%)
CMYKcmyk(70.5%, 74.2%, 0%, 14.9%)
CIE-LABlab(35.84, 52.90, -80.31)
CIE-LCHlch(35.84, 96.17, 303.37°)
OKLaboklab(46.97% 0.0196 -0.2322)
OKLCHoklch(46.97% 0.233 274.8)
XYZxyz(16.0488, 8.9265, 66.5094)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4038D9 #D1D938
analogous
#3880D9 #4038D9 #9038D9
triadic
#4038D9 #D94038 #38D940
tetradic
#4038D9 #D93880 #D1D938 #38D990
square
#4038D9 #D93880 #D1D938 #38D990
split-complementary
#4038D9 #D99038 #80D938
monochromatic
#1D187E #2922B2 #4038D9 #716BE3 #A39FED

Accessibility & contrast

On white

7.54
#4038D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#4038D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4038D9
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4038D9#FFFFFF#000000##FFFFFF
##4038D91.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDE
Deuteranopia (green-blind)
#004DD6
Tritanopia (blue-blind)
#006786
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4038d9;
/* rgb */ color: rgb(64, 56, 217);
/* oklch */ color: oklch(47.0% 0.233 274.8);
Tailwind
colors: {
  custom: {
    50: '#8b71e6',
    500: '#4038d9',
    950: '#000000',
  },
}
SCSS
$custom: #4038d9;
$custom-light: #8b71e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4038d9",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 242.981,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4697,
    "c": 0.23307,
    "h": 274.8
  },
  "luminance": 0.08928
}

Semantic roles & 50–950 ramp

primary
#4038D9
secondary
#D5D994
accent
#EB3DE2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4038D9

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

Preview Lab → · Contrast checker → · Palette generator →

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