#4057C2#4057C2

#4057C2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.1% C 0.169 H 270.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#4057C2
RGBrgb(64, 87, 194)
HSLhsl(229, 52%, 51%)
HSVhsv(229, 67%, 76%)
CMYKcmyk(67%, 55.2%, 0%, 23.9%)
CIE-LABlab(40.90, 26.49, -58.73)
CIE-LCHlch(40.90, 64.43, 294.28°)
OKLaboklab(50.06% 0.0002 -0.1689)
OKLCHoklch(50.06% 0.169 270.1)
XYZxyz(15.2568, 11.8000, 52.5021)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057C2 #C2AB40
analogous
#4098C2 #4057C2 #6A40C2
triadic
#4057C2 #C24057 #57C240
tetradic
#4057C2 #C24098 #C2AB40 #40C26A
square
#4057C2 #C24098 #C2AB40 #40C26A
split-complementary
#4057C2 #C26A40 #98C240
monochromatic
#212D67 #304295 #4057C2 #6E80D1 #9DA9E0

Accessibility & contrast

On white

6.25
#4057C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4057C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057C2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057C2#FFFFFF#000000##FFFFFF
##4057C21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4057c2;
/* rgb */ color: rgb(64, 87, 194);
/* oklch */ color: oklch(50.1% 0.169 270.1);
Tailwind
colors: {
  custom: {
    50: '#8486d5',
    500: '#4057c2',
    950: '#000000',
  },
}
SCSS
$custom: #4057c2;
$custom-light: #8486d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4057c2",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 194
  },
  "hsl": {
    "h": 229.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50055,
    "c": 0.16893,
    "h": 270.1
  },
  "luminance": 0.11801
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4057C2

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

Preview Lab → · Contrast checker → · Palette generator →

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