#4045C3#4045C3

#4045C3 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.8% C 0.192 H 274.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4045C3
RGBrgb(64, 69, 195)
HSLhsl(238, 52%, 51%)
HSVhsv(238, 67%, 76%)
CMYKcmyk(67.2%, 64.6%, 0%, 23.5%)
CIE-LABlab(36.53, 38.21, -66.43)
CIE-LCHlch(36.53, 76.64, 299.90°)
OKLaboklab(46.84% 0.0148 -0.1917)
OKLCHoklch(46.84% 0.192 274.4)
XYZxyz(14.0895, 9.2851, 52.6689)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C3 #C3BE40
analogous
#4086C3 #4045C3 #7C40C3
triadic
#4045C3 #C34045 #45C340
tetradic
#4045C3 #C34086 #C3BE40 #40C37C
square
#4045C3 #C34086 #C3BE40 #40C37C
split-complementary
#4045C3 #C37C40 #86C340
monochromatic
#212368 #2F3397 #4045C3 #6F72D2 #9DA0E0

Accessibility & contrast

On white

7.35
#4045C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4045C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C3
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C3#FFFFFF#000000##FFFFFF
##4045C31.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#00667E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4045c3;
/* rgb */ color: rgb(64, 69, 195);
/* oklch */ color: oklch(46.8% 0.192 274.4);
Tailwind
colors: {
  custom: {
    50: '#8579d6',
    500: '#4045c3',
    950: '#000000',
  },
}
SCSS
$custom: #4045c3;
$custom-light: #8579d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c3",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 237.71,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46843,
    "c": 0.19229,
    "h": 274.4
  },
  "luminance": 0.09286
}

Semantic roles & 50–950 ramp

primary
#4045C3
secondary
#CCCA92
accent
#D64CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #4045C3

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

Preview Lab → · Contrast checker → · Palette generator →

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