#4045CA#4045CA

#4045CA is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.5% C 0.201 H 274.0°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#4045CA
RGBrgb(64, 69, 202)
HSLhsl(238, 57%, 52%)
HSVhsv(238, 68%, 79%)
CMYKcmyk(68.3%, 65.8%, 0%, 20.8%)
CIE-LABlab(37.13, 40.58, -69.52)
CIE-LCHlch(37.13, 80.50, 300.27°)
OKLaboklab(47.47% 0.0141 -0.2008)
OKLCHoklch(47.47% 0.201 274)
XYZxyz(14.8996, 9.6091, 56.9352)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045CA #CAC540
analogous
#408ACA #4045CA #8040CA
triadic
#4045CA #CA4045 #45CA40
tetradic
#4045CA #CA408A #CAC540 #40CA80
square
#4045CA #CA408A #CAC540 #40CA80
split-complementary
#4045CA #CA8040 #8ACA40
monochromatic
#1F2270 #2C31A0 #4045CA #7074D7 #A0A2E5

Accessibility & contrast

On white

7.19
#4045CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#4045CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045CA
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045CA#FFFFFF#000000##FFFFFF
##4045CA1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4045ca;
/* rgb */ color: rgb(64, 69, 202);
/* oklch */ color: oklch(47.5% 0.201 274.0);
Tailwind
colors: {
  custom: {
    50: '#8679db',
    500: '#4045ca',
    950: '#000000',
  },
}
SCSS
$custom: #4045ca;
$custom-light: #8679db;
$custom-dark: #000000;
JSON
{
  "hex": "#4045ca",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 237.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47469,
    "c": 0.20127,
    "h": 274
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#4045CA
secondary
#D1CF95
accent
#DA48E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045CA

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

Preview Lab → · Contrast checker → · Palette generator →

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