#4045CC#4045CC

#4045CC is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.6% C 0.204 H 273.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#4045CC
RGBrgb(64, 69, 204)
HSLhsl(238, 58%, 53%)
HSVhsv(238, 69%, 80%)
CMYKcmyk(68.6%, 66.2%, 0%, 20%)
CIE-LABlab(37.31, 41.26, -70.40)
CIE-LCHlch(37.31, 81.59, 300.37°)
OKLaboklab(47.65% 0.014 -0.2033)
OKLCHoklch(47.65% 0.204 273.9)
XYZxyz(15.1379, 9.7044, 58.1904)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045CC #CCC740
analogous
#408BCC #4045CC #8140CC
triadic
#4045CC #CC4045 #45CC40
tetradic
#4045CC #CC408B #CCC740 #40CC81
square
#4045CC #CC408B #CCC740 #40CC81
split-complementary
#4045CC #CC8140 #8BCC40
monochromatic
#1F2273 #2C30A3 #4045CC #7074D9 #A1A3E6

Accessibility & contrast

On white

7.14
#4045CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4045CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045CC
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045CC#FFFFFF#000000##FFFFFF
##4045CC1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#006982
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4045cc;
/* rgb */ color: rgb(64, 69, 204);
/* oklch */ color: oklch(47.6% 0.204 273.9);
Tailwind
colors: {
  custom: {
    50: '#8779dd',
    500: '#4045cc',
    950: '#000000',
  },
}
SCSS
$custom: #4045cc;
$custom-light: #8779dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4045cc",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 237.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4765,
    "c": 0.2038,
    "h": 273.9
  },
  "luminance": 0.09706
}

Semantic roles & 50–950 ramp

primary
#4045CC
secondary
#D2D095
accent
#DC47E1
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045CC

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

Preview Lab → · Contrast checker → · Palette generator →

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