#4045CB#4045CB

#4045CB is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.6% C 0.203 H 274.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#4045CB
RGBrgb(64, 69, 203)
HSLhsl(238, 57%, 52%)
HSVhsv(238, 68%, 80%)
CMYKcmyk(68.5%, 66%, 0%, 20.4%)
CIE-LABlab(37.22, 40.92, -69.96)
CIE-LCHlch(37.22, 81.05, 300.32°)
OKLaboklab(47.56% 0.0141 -0.202)
OKLCHoklch(47.56% 0.203 274)
XYZxyz(15.0184, 9.6566, 57.5608)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4045CB #CBC640
analogous
#408ACB #4045CB #8140CB
triadic
#4045CB #CB4045 #45CB40
tetradic
#4045CB #CB408A #CBC640 #40CB81
square
#4045CB #CB408A #CBC640 #40CB81
split-complementary
#4045CB #CB8140 #8ACB40
monochromatic
#1F2272 #2C30A2 #4045CB #7074D8 #A0A3E5

Accessibility & contrast

On white

7.16
#4045CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4045CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4045CB
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4045CB#FFFFFF#000000##FFFFFF
##4045CB1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4045cb;
/* rgb */ color: rgb(64, 69, 203);
/* oklch */ color: oklch(47.6% 0.203 274.0);
Tailwind
colors: {
  custom: {
    50: '#8779dc',
    500: '#4045cb',
    950: '#000000',
  },
}
SCSS
$custom: #4045cb;
$custom-light: #8779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4045cb",
  "rgb": {
    "r": 64,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 237.842,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4756,
    "c": 0.20254,
    "h": 274
  },
  "luminance": 0.09658
}

Semantic roles & 50–950 ramp

primary
#4045CB
secondary
#D2CF95
accent
#DB47E0
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4045CB

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

Preview Lab → · Contrast checker → · Palette generator →

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