#4045D3#4045D3

#4045D3 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.213 H 273.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#4045D3
RGBrgb(64, 69, 211)
HSLhsl(238, 63%, 54%)
HSVhsv(238, 70%, 83%)
CMYKcmyk(69.7%, 67.3%, 0%, 17.3%)
CIE-LABlab(37.93, 43.61, -73.42)
CIE-LCHlch(37.93, 85.40, 300.71°)
OKLaboklab(48.29% 0.0132 -0.2122)
OKLCHoklch(48.29% 0.213 273.6)
XYZxyz(15.9964, 10.0478, 62.7118)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045D3 #D3CE40
analogous
#408FD3 #4045D3 #8540D3
triadic
#4045D3 #D34045 #45D340
tetradic
#4045D3 #D3408F #D3CE40 #40D385
square
#4045D3 #D3408F #D3CE40 #40D385
split-complementary
#4045D3 #D38540 #8FD340
monochromatic
#1D207C #282DAE #4045D3 #7275DE #A3A6EA

Accessibility & contrast

On white

6.98
#4045D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4045D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4045D3
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045D3#FFFFFF#000000##FFFFFF
##4045D31.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D7
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#006B86
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4045d3;
/* rgb */ color: rgb(64, 69, 211);
/* oklch */ color: oklch(48.3% 0.213 273.6);
Tailwind
colors: {
  custom: {
    50: '#8879e2',
    500: '#4045d3',
    950: '#000000',
  },
}
SCSS
$custom: #4045d3;
$custom-light: #8879e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4045d3",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 237.959,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48291,
    "c": 0.21259,
    "h": 273.6
  },
  "luminance": 0.10049
}

Semantic roles & 50–950 ramp

primary
#4045D3
secondary
#D7D598
accent
#E042E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #4045D3

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

Preview Lab → · Contrast checker → · Palette generator →

#4045D3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva