#4045C9#4045C9

#4045C9 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.4% C 0.200 H 274.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#4045C9
RGBrgb(64, 69, 201)
HSLhsl(238, 56%, 52%)
HSVhsv(238, 68%, 79%)
CMYKcmyk(68.2%, 65.7%, 0%, 21.2%)
CIE-LABlab(37.04, 40.24, -69.08)
CIE-LCHlch(37.04, 79.95, 300.22°)
OKLaboklab(47.38% 0.0142 -0.1995)
OKLCHoklch(47.38% 0.2 274.1)
XYZxyz(14.7816, 9.5619, 56.3137)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C9 #C9C440
analogous
#408AC9 #4045C9 #8040C9
triadic
#4045C9 #C94045 #45C940
tetradic
#4045C9 #C9408A #C9C440 #40C980
square
#4045C9 #C9408A #C9C440 #40C980
split-complementary
#4045C9 #C98040 #8AC940
monochromatic
#1F226F #2D319F #4045C9 #7073D6 #9FA2E4

Accessibility & contrast

On white

7.21
#4045C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4045C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C9
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C9#FFFFFF#000000##FFFFFF
##4045C91.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0051C6
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4045c9;
/* rgb */ color: rgb(64, 69, 201);
/* oklch */ color: oklch(47.4% 0.200 274.1);
Tailwind
colors: {
  custom: {
    50: '#8679db',
    500: '#4045c9',
    950: '#000000',
  },
}
SCSS
$custom: #4045c9;
$custom-light: #8679db;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c9",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 237.81,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47379,
    "c": 0.19999,
    "h": 274.1
  },
  "luminance": 0.09563
}

Semantic roles & 50–950 ramp

primary
#4045C9
secondary
#D0CE94
accent
#DA49DF
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045C9

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

Preview Lab → · Contrast checker → · Palette generator →

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