#4045C8#4045C8

#4045C8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.3% C 0.199 H 274.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#4045C8
RGBrgb(64, 69, 200)
HSLhsl(238, 55%, 52%)
HSVhsv(238, 68%, 78%)
CMYKcmyk(68%, 65.5%, 0%, 21.6%)
CIE-LABlab(36.96, 39.91, -68.64)
CIE-LCHlch(36.96, 79.40, 300.17°)
OKLaboklab(47.29% 0.0143 -0.1982)
OKLCHoklch(47.29% 0.199 274.1)
XYZxyz(14.6643, 9.5150, 55.6962)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045C8 #C8C340
analogous
#4089C8 #4045C8 #7F40C8
triadic
#4045C8 #C84045 #45C840
tetradic
#4045C8 #C84089 #C8C340 #40C87F
square
#4045C8 #C84089 #C8C340 #40C87F
split-complementary
#4045C8 #C87F40 #89C840
monochromatic
#20236E #2D319D #4045C8 #7073D6 #9FA2E3

Accessibility & contrast

On white

7.23
#4045C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4045C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045C8
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045C8#FFFFFF#000000##FFFFFF
##4045C81.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4045c8;
/* rgb */ color: rgb(64, 69, 200);
/* oklch */ color: oklch(47.3% 0.199 274.1);
Tailwind
colors: {
  custom: {
    50: '#8679da',
    500: '#4045c8',
    950: '#000000',
  },
}
SCSS
$custom: #4045c8;
$custom-light: #8679da;
$custom-dark: #000000;
JSON
{
  "hex": "#4045c8",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 237.794,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47289,
    "c": 0.19872,
    "h": 274.1
  },
  "luminance": 0.09516
}

Semantic roles & 50–950 ramp

primary
#4045C8
secondary
#D0CE94
accent
#D949DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4045C8

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

Preview Lab → · Contrast checker → · Palette generator →

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