#4257C4#4257C4

#4257C4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.3% C 0.171 H 270.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#4257C4
RGBrgb(66, 87, 196)
HSLhsl(230, 52%, 51%)
HSVhsv(230, 66%, 77%)
CMYKcmyk(66.3%, 55.6%, 0%, 23.1%)
CIE-LABlab(41.15, 27.51, -59.48)
CIE-LCHlch(41.15, 65.53, 294.82°)
OKLaboklab(50.32% 0.0023 -0.1711)
OKLCHoklch(50.32% 0.171 270.8)
XYZxyz(15.6154, 11.9587, 53.6992)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4257C4 #C4AF42
analogous
#4298C4 #4257C4 #6E42C4
triadic
#4257C4 #C44257 #57C442
tetradic
#4257C4 #C44298 #C4AF42 #42C46E
square
#4257C4 #C44298 #C4AF42 #42C46E
split-complementary
#4257C4 #C46E42 #98C442
monochromatic
#212D6A #304199 #4257C4 #7180D3 #9FAAE1

Accessibility & contrast

On white

6.19
#4257C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#4257C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4257C4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4257C4#FFFFFF#000000##FFFFFF
##4257C41.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4257c4;
/* rgb */ color: rgb(66, 87, 196);
/* oklch */ color: oklch(50.3% 0.171 270.8);
Tailwind
colors: {
  custom: {
    50: '#8586d7',
    500: '#4257c4',
    950: '#000000',
  },
}
SCSS
$custom: #4257c4;
$custom-light: #8586d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4257c4",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 196
  },
  "hsl": {
    "h": 230.308,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5032,
    "c": 0.1711,
    "h": 270.8
  },
  "luminance": 0.1196
}

Semantic roles & 50–950 ramp

primary
#4257C4
secondary
#CEC494
accent
#C54CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4257C4

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

Preview Lab → · Contrast checker → · Palette generator →

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