#4055CA#4055CA

#4055CA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.3% C 0.182 H 270.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#4055CA
RGBrgb(64, 85, 202)
HSLhsl(231, 57%, 52%)
HSVhsv(231, 68%, 79%)
CMYKcmyk(68.3%, 57.9%, 0%, 20.8%)
CIE-LABlab(40.98, 30.60, -63.24)
CIE-LCHlch(40.98, 70.26, 295.82°)
OKLaboklab(50.3% 0.0021 -0.1822)
OKLCHoklch(50.3% 0.182 270.7)
XYZxyz(16.0199, 11.8497, 57.3086)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4055CA #CAB540
analogous
#409ACA #4055CA #7040CA
triadic
#4055CA #CA4055 #55CA40
tetradic
#4055CA #CA409A #CAB540 #40CA70
square
#4055CA #CA409A #CAB540 #40CA70
split-complementary
#4055CA #CA7040 #9ACA40
monochromatic
#1F2C70 #2C3EA0 #4055CA #7080D7 #A0AAE5

Accessibility & contrast

On white

6.23
#4055CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4055CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4055CA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4055CA#FFFFFF#000000##FFFFFF
##4055CA1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4055ca;
/* rgb */ color: rgb(64, 85, 202);
/* oklch */ color: oklch(50.3% 0.182 270.7);
Tailwind
colors: {
  custom: {
    50: '#8584db',
    500: '#4055ca',
    950: '#000000',
  },
}
SCSS
$custom: #4055ca;
$custom-light: #8584db;
$custom-dark: #000000;
JSON
{
  "hex": "#4055ca",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 230.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.50301,
    "c": 0.18223,
    "h": 270.7
  },
  "luminance": 0.11851
}

Semantic roles & 50–950 ramp

primary
#4055CA
secondary
#D1C895
accent
#C948E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4055CA

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

Preview Lab → · Contrast checker → · Palette generator →

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