#4257D2#4257D2

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

Color values

HEX#4257D2
RGBrgb(66, 87, 210)
HSLhsl(231, 62%, 54%)
HSVhsv(231, 69%, 82%)
CMYKcmyk(68.6%, 58.6%, 0%, 17.6%)
CIE-LABlab(42.19, 32.43, -65.87)
CIE-LCHlch(42.19, 73.42, 296.22°)
OKLaboklab(51.43% 0.0026 -0.1899)
OKLCHoklch(51.43% 0.19 270.8)
XYZxyz(17.2839, 12.6261, 62.4865)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4257D2 #D2BD42
analogous
#429FD2 #4257D2 #7542D2
triadic
#4257D2 #D24257 #57D242
tetradic
#4257D2 #D2429F #D2BD42 #42D275
square
#4257D2 #D2429F #D2BD42 #42D275
split-complementary
#4257D2 #D27542 #9FD242
monochromatic
#1E2B7C #293DAD #4257D2 #7383DE #A5AFEA

Accessibility & contrast

On white

5.96
#4257D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4257D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4257D2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4257D2#FFFFFF#000000##FFFFFF
##4257D21.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4257d2;
/* rgb */ color: rgb(66, 87, 210);
/* oklch */ color: oklch(51.4% 0.190 270.8);
Tailwind
colors: {
  custom: {
    50: '#8886e1',
    500: '#4257d2',
    950: '#000000',
  },
}
SCSS
$custom: #4257d2;
$custom-light: #8886e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4257d2",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 231.25,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51428,
    "c": 0.18988,
    "h": 270.8
  },
  "luminance": 0.12628
}

Semantic roles & 50–950 ramp

primary
#4257D2
secondary
#D7CE99
accent
#CD43E5
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4257D2

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

Preview Lab → · Contrast checker → · Palette generator →

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