#4045DD#4045DD

#4045DD is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.2% C 0.225 H 273.1°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#4045DD
RGBrgb(64, 69, 221)
HSLhsl(238, 70%, 56%)
HSVhsv(238, 71%, 87%)
CMYKcmyk(71%, 68.8%, 0%, 13.3%)
CIE-LABlab(38.84, 46.93, -77.67)
CIE-LCHlch(38.84, 90.75, 301.14°)
OKLaboklab(49.22% 0.0121 -0.2246)
OKLCHoklch(49.22% 0.225 273.1)
XYZxyz(17.2892, 10.5650, 69.5207)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045DD #DDD840
analogous
#4093DD #4045DD #8940DD
triadic
#4045DD #DD4045 #45DD40
tetradic
#4045DD #DD4093 #DDD840 #40DD89
square
#4045DD #DD4093 #DDD840 #40DD89
split-complementary
#4045DD #DD8940 #93DD40
monochromatic
#191C8A #2227BE #4045DD #7478E6 #A8AAEF

Accessibility & contrast

On white

6.75
#4045DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4045DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4045DD
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045DD#FFFFFF#000000##FFFFFF
##4045DD1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0054DA
Tritanopia (blue-blind)
#006F8C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4045dd;
/* rgb */ color: rgb(64, 69, 221);
/* oklch */ color: oklch(49.2% 0.225 273.1);
Tailwind
colors: {
  custom: {
    50: '#8a7ae9',
    500: '#4045dd',
    950: '#000000',
  },
}
SCSS
$custom: #4045dd;
$custom-light: #8a7ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#4045dd",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 221
  },
  "hsl": {
    "h": 238.089,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49224,
    "c": 0.22492,
    "h": 273.1
  },
  "luminance": 0.10567
}

Semantic roles & 50–950 ramp

primary
#4045DD
secondary
#DDDB9C
accent
#E73BED
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4045DD

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

Preview Lab → · Contrast checker → · Palette generator →

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