#4045C2#4045C2

#4045C2 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.8% C 0.191 H 274.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#4045C2
RGBrgb(64, 69, 194)
HSLhsl(238, 52%, 51%)
HSVhsv(238, 67%, 76%)
CMYKcmyk(67%, 64.4%, 0%, 23.9%)
CIE-LABlab(36.44, 37.87, -65.99)
CIE-LCHlch(36.44, 76.08, 299.85°)
OKLaboklab(46.76% 0.0148 -0.1904)
OKLCHoklch(46.76% 0.191 274.5)
XYZxyz(13.9769, 9.2400, 52.0754)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C2 #C2BD40
analogous
#4086C2 #4045C2 #7C40C2
triadic
#4045C2 #C24045 #45C240
tetradic
#4045C2 #C24086 #C2BD40 #40C27C
square
#4045C2 #C24086 #C2BD40 #40C27C
split-complementary
#4045C2 #C27C40 #86C240
monochromatic
#212467 #303495 #4045C2 #6E72D1 #9D9FE0

Accessibility & contrast

On white

7.37
#4045C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4045C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C2#FFFFFF#000000##FFFFFF
##4045C21.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4045c2;
/* rgb */ color: rgb(64, 69, 194);
/* oklch */ color: oklch(46.8% 0.191 274.5);
Tailwind
colors: {
  custom: {
    50: '#8579d5',
    500: '#4045c2',
    950: '#000000',
  },
}
SCSS
$custom: #4045c2;
$custom-light: #8579d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c2",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 237.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46755,
    "c": 0.19099,
    "h": 274.5
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4045C2

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

Preview Lab → · Contrast checker → · Palette generator →

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