#4045C0#4045C0

#4045C0 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.6% C 0.188 H 274.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4045C0
RGBrgb(64, 69, 192)
HSLhsl(238, 50%, 50%)
HSVhsv(238, 67%, 75%)
CMYKcmyk(66.7%, 64.1%, 0%, 24.7%)
CIE-LABlab(36.27, 37.19, -65.09)
CIE-LCHlch(36.27, 74.97, 299.74°)
OKLaboklab(46.58% 0.015 -0.1878)
OKLCHoklch(46.58% 0.188 274.6)
XYZxyz(13.7538, 9.1508, 50.9004)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C0 #C0BB40
analogous
#4085C0 #4045C0 #7B40C0
triadic
#4045C0 #C04045 #45C040
tetradic
#4045C0 #C04085 #C0BB40 #40C07B
square
#4045C0 #C04085 #C0BB40 #40C07B
split-complementary
#4045C0 #C07B40 #85C040
monochromatic
#212464 #303492 #4045C0 #6E72CF #9C9FDE

Accessibility & contrast

On white

7.42
#4045C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4045C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C0
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C0#FFFFFF#000000##FFFFFF
##4045C01.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#00657C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4045c0;
/* rgb */ color: rgb(64, 69, 192);
/* oklch */ color: oklch(46.6% 0.188 274.6);
Tailwind
colors: {
  custom: {
    50: '#8479d4',
    500: '#4045c0',
    950: '#000000',
  },
}
SCSS
$custom: #4045c0;
$custom-light: #8479d4;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c0",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 192
  },
  "hsl": {
    "h": 237.656,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46579,
    "c": 0.18839,
    "h": 274.6
  },
  "luminance": 0.09152
}

Semantic roles & 50–950 ramp

primary
#4045C0
secondary
#CBC891
accent
#D44EDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4045C0

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

Preview Lab → · Contrast checker → · Palette generator →

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