#4057D3#4057D3

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

Color values

HEX#4057D3
RGBrgb(64, 87, 211)
HSLhsl(231, 63%, 54%)
HSVhsv(231, 70%, 83%)
CMYKcmyk(69.7%, 58.8%, 0%, 17.3%)
CIE-LABlab(42.17, 32.51, -66.49)
CIE-LCHlch(42.17, 74.02, 296.06°)
OKLaboklab(51.4% 0.0007 -0.1917)
OKLCHoklch(51.4% 0.192 270.2)
XYZxyz(17.2764, 12.6078, 63.1385)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4057D3 #D3BC40
analogous
#40A1D3 #4057D3 #7340D3
triadic
#4057D3 #D34057 #57D340
tetradic
#4057D3 #D340A1 #D3BC40 #40D373
square
#4057D3 #D340A1 #D3BC40 #40D373
split-complementary
#4057D3 #D37340 #A1D340
monochromatic
#1D2C7C #283DAE #4057D3 #7283DE #A3AFEA

Accessibility & contrast

On white

5.96
#4057D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4057D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4057D3
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4057D3#FFFFFF#000000##FFFFFF
##4057D31.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4057d3;
/* rgb */ color: rgb(64, 87, 211);
/* oklch */ color: oklch(51.4% 0.192 270.2);
Tailwind
colors: {
  custom: {
    50: '#8786e1',
    500: '#4057d3',
    950: '#000000',
  },
}
SCSS
$custom: #4057d3;
$custom-light: #8786e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4057d3",
  "rgb": {
    "r": 64,
    "g": 87,
    "b": 211
  },
  "hsl": {
    "h": 230.612,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51403,
    "c": 0.19174,
    "h": 270.2
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#4057D3
secondary
#D7CD98
accent
#CC42E6
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4057D3

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

Preview Lab → · Contrast checker → · Palette generator →

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