#4045AF#4045AF

#4045AF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.1% C 0.166 H 275.5°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#4045AF
RGBrgb(64, 69, 175)
HSLhsl(237, 46%, 47%)
HSVhsv(237, 63%, 69%)
CMYKcmyk(63.4%, 60.6%, 0%, 31.4%)
CIE-LABlab(34.88, 31.35, -57.33)
CIE-LCHlch(34.88, 65.34, 298.67°)
OKLaboklab(45.13% 0.0158 -0.165)
OKLCHoklch(45.13% 0.166 275.5)
XYZxyz(11.9778, 8.4404, 41.5471)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045AF #AFAA40
analogous
#407DAF #4045AF #7340AF
triadic
#4045AF #AF4045 #45AF40
tetradic
#4045AF #AF407D #AFAA40 #40AF73
square
#4045AF #AF407D #AFAA40 #40AF73
split-complementary
#4045AF #AF7340 #7DAF40
monochromatic
#1F2255 #303382 #4045AF #656AC7 #9295D7

Accessibility & contrast

On white

7.81
#4045AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4045AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045AF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045AF#FFFFFF#000000##FFFFFF
##4045AF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4045af;
/* rgb */ color: rgb(64, 69, 175);
/* oklch */ color: oklch(45.1% 0.166 275.5);
Tailwind
colors: {
  custom: {
    50: '#8178c8',
    500: '#4045af',
    950: '#000000',
  },
}
SCSS
$custom: #4045af;
$custom-light: #8178c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4045af",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 237.297,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45126,
    "c": 0.16577,
    "h": 275.5
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#4045AF
secondary
#C3C088
accent
#D052D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4045AF

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

Preview Lab → · Contrast checker → · Palette generator →

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