#4055C2#4055C2

#4055C2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.7% C 0.171 H 270.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#4055C2
RGBrgb(64, 85, 194)
HSLhsl(230, 52%, 51%)
HSVhsv(230, 67%, 76%)
CMYKcmyk(67%, 56.2%, 0%, 23.9%)
CIE-LABlab(40.38, 27.77, -59.58)
CIE-LCHlch(40.38, 65.73, 294.99°)
OKLaboklab(49.67% 0.0019 -0.1714)
OKLCHoklch(49.67% 0.171 270.6)
XYZxyz(15.0972, 11.4806, 52.4488)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4055C2 #C2AD40
analogous
#4096C2 #4055C2 #6C40C2
triadic
#4055C2 #C24055 #55C240
tetradic
#4055C2 #C24096 #C2AD40 #40C26C
square
#4055C2 #C24096 #C2AD40 #40C26C
split-complementary
#4055C2 #C26C40 #96C240
monochromatic
#212C67 #304095 #4055C2 #6E7ED1 #9DA8E0

Accessibility & contrast

On white

6.37
#4055C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#4055C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4055C2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4055C2#FFFFFF#000000##FFFFFF
##4055C21.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4055c2;
/* rgb */ color: rgb(64, 85, 194);
/* oklch */ color: oklch(49.7% 0.171 270.6);
Tailwind
colors: {
  custom: {
    50: '#8484d5',
    500: '#4055c2',
    950: '#000000',
  },
}
SCSS
$custom: #4055c2;
$custom-light: #8484d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4055c2",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 194
  },
  "hsl": {
    "h": 230.308,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49666,
    "c": 0.17144,
    "h": 270.6
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#4055C2
secondary
#CCC292
accent
#C44DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4055C2

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

Preview Lab → · Contrast checker → · Palette generator →

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