#4045CD#4045CD

#4045CD is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 47.7% C 0.205 H 273.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#4045CD
RGBrgb(64, 69, 205)
HSLhsl(238, 59%, 53%)
HSVhsv(238, 69%, 80%)
CMYKcmyk(68.8%, 66.3%, 0%, 19.6%)
CIE-LABlab(37.39, 41.59, -70.83)
CIE-LCHlch(37.39, 82.14, 300.42°)
OKLaboklab(47.74% 0.0139 -0.2046)
OKLCHoklch(47.74% 0.205 273.9)
XYZxyz(15.2583, 9.7526, 58.8241)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045CD #CDC840
analogous
#408CCD #4045CD #8140CD
triadic
#4045CD #CD4045 #45CD40
tetradic
#4045CD #CD408C #CDC840 #40CD81
square
#4045CD #CD408C #CDC840 #40CD81
split-complementary
#4045CD #CD8140 #8CCD40
monochromatic
#1E2174 #2B2FA5 #4045CD #7174DA #A1A3E6

Accessibility & contrast

On white

7.12
#4045CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4045CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045CD
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045CD#FFFFFF#000000##FFFFFF
##4045CD1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4045cd;
/* rgb */ color: rgb(64, 69, 205);
/* oklch */ color: oklch(47.7% 0.205 273.9);
Tailwind
colors: {
  custom: {
    50: '#8779dd',
    500: '#4045cd',
    950: '#000000',
  },
}
SCSS
$custom: #4045cd;
$custom-light: #8779dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4045cd",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 237.872,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47741,
    "c": 0.20507,
    "h": 273.9
  },
  "luminance": 0.09754
}

Semantic roles & 50–950 ramp

primary
#4045CD
secondary
#D3D196
accent
#DC46E2
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045CD

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

Preview Lab → · Contrast checker → · Palette generator →

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