#4057D2#4057D2

#4057D2 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.190 H 270.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4057D2
RGBrgb(64, 87, 210)
HSLhsl(231, 62%, 54%)
HSVhsv(231, 70%, 82%)
CMYKcmyk(69.5%, 58.6%, 0%, 17.6%)
CIE-LABlab(42.09, 32.16, -66.04)
CIE-LCHlch(42.09, 73.46, 295.97°)
OKLaboklab(51.32% 0.0007 -0.1904)
OKLCHoklch(51.32% 0.19 270.2)
XYZxyz(17.1514, 12.5578, 62.4803)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057D2 #D2BB40
analogous
#40A0D2 #4057D2 #7240D2
triadic
#4057D2 #D24057 #57D240
tetradic
#4057D2 #D240A0 #D2BB40 #40D272
square
#4057D2 #D240A0 #D2BB40 #40D272
split-complementary
#4057D2 #D27240 #A0D240
monochromatic
#1D2C7B #293DAC #4057D2 #7283DE #A3AEE9

Accessibility & contrast

On white

5.98
#4057D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4057D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057D2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057D2#FFFFFF#000000##FFFFFF
##4057D21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#00768C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4057d2;
/* rgb */ color: rgb(64, 87, 210);
/* oklch */ color: oklch(51.3% 0.190 270.2);
Tailwind
colors: {
  custom: {
    50: '#8786e1',
    500: '#4057d2',
    950: '#000000',
  },
}
SCSS
$custom: #4057d2;
$custom-light: #8786e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4057d2",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 230.548,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.19042,
    "h": 270.2
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#4057D2
secondary
#D6CC98
accent
#CB43E5
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4057D2

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

Preview Lab → · Contrast checker → · Palette generator →

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