#4054CD#4054CD

#4054CD is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.4% C 0.187 H 270.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#4054CD
RGBrgb(64, 84, 205)
HSLhsl(231, 59%, 53%)
HSVhsv(231, 69%, 80%)
CMYKcmyk(68.8%, 59%, 0%, 19.6%)
CIE-LABlab(40.96, 32.30, -65.01)
CIE-LCHlch(40.96, 72.59, 296.42°)
OKLaboklab(50.36% 0.003 -0.1874)
OKLCHoklch(50.36% 0.187 270.9)
XYZxyz(16.3004, 11.8368, 59.1715)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054CD #CDB940
analogous
#409BCD #4054CD #7240CD
triadic
#4054CD #CD4054 #54CD40
tetradic
#4054CD #CD409B #CDB940 #40CD72
square
#4054CD #CD409B #CDB940 #40CD72
split-complementary
#4054CD #CD7240 #9BCD40
monochromatic
#1E2B74 #2B3CA5 #4054CD #717FDA #A1ABE6

Accessibility & contrast

On white

6.24
#4054CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4054CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054CD
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054CD#FFFFFF#000000##FFFFFF
##4054CD1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#007288
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4054cd;
/* rgb */ color: rgb(64, 84, 205);
/* oklch */ color: oklch(50.4% 0.187 270.9);
Tailwind
colors: {
  custom: {
    50: '#8684dd',
    500: '#4054cd',
    950: '#000000',
  },
}
SCSS
$custom: #4054cd;
$custom-light: #8684dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4054cd",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 231.489,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50358,
    "c": 0.18744,
    "h": 270.9
  },
  "luminance": 0.11838
}

Semantic roles & 50–950 ramp

primary
#4054CD
secondary
#D3CA96
accent
#CC46E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4054CD

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

Preview Lab → · Contrast checker → · Palette generator →

#4054CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva