#4054CA#4054CA

#4054CA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.1% C 0.183 H 270.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4054CA
RGBrgb(64, 84, 202)
HSLhsl(231, 57%, 52%)
HSVhsv(231, 68%, 79%)
CMYKcmyk(68.3%, 58.4%, 0%, 20.8%)
CIE-LABlab(40.72, 31.24, -63.65)
CIE-LCHlch(40.72, 70.91, 296.14°)
OKLaboklab(50.11% 0.0029 -0.1834)
OKLCHoklch(50.11% 0.183 270.9)
XYZxyz(15.9417, 11.6934, 57.2826)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4054CA #CAB640
analogous
#4099CA #4054CA #7140CA
triadic
#4054CA #CA4054 #54CA40
tetradic
#4054CA #CA4099 #CAB640 #40CA71
square
#4054CA #CA4099 #CAB640 #40CA71
split-complementary
#4054CA #CA7140 #99CA40
monochromatic
#1F2B70 #2C3DA0 #4054CA #707FD7 #A0AAE5

Accessibility & contrast

On white

6.29
#4054CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4054CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4054CA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4054CA#FFFFFF#000000##FFFFFF
##4054CA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4054ca;
/* rgb */ color: rgb(64, 84, 202);
/* oklch */ color: oklch(50.1% 0.183 270.9);
Tailwind
colors: {
  custom: {
    50: '#8584db',
    500: '#4054ca',
    950: '#000000',
  },
}
SCSS
$custom: #4054ca;
$custom-light: #8584db;
$custom-dark: #000000;
JSON
{
  "hex": "#4054ca",
  "rgb": {
    "r": 64,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 231.304,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50114,
    "c": 0.18345,
    "h": 270.9
  },
  "luminance": 0.11695
}

Semantic roles & 50–950 ramp

primary
#4054CA
secondary
#D1C895
accent
#CA48E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #4054CA

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

Preview Lab → · Contrast checker → · Palette generator →

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