#4257CB#4257CB

#4257CB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.9% C 0.181 H 270.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#4257CB
RGBrgb(66, 87, 203)
HSLhsl(231, 57%, 53%)
HSVhsv(231, 67%, 80%)
CMYKcmyk(67.5%, 57.1%, 0%, 20.4%)
CIE-LABlab(41.67, 29.98, -62.70)
CIE-LCHlch(41.67, 69.49, 295.55°)
OKLaboklab(50.87% 0.0025 -0.1805)
OKLCHoklch(50.87% 0.181 270.8)
XYZxyz(16.4308, 12.2849, 57.9937)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4257CB #CBB642
analogous
#429BCB #4257CB #7242CB
triadic
#4257CB #CB4257 #57CB42
tetradic
#4257CB #CB429B #CBB642 #42CB72
square
#4257CB #CB429B #CBB642 #42CB72
split-complementary
#4257CB #CB7242 #9BCB42
monochromatic
#202C73 #2D3FA3 #4257CB #7282D8 #A2ACE5

Accessibility & contrast

On white

6.07
#4257CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4257CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4257CB
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4257CB#FFFFFF#000000##FFFFFF
##4257CB1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#007388
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4257cb;
/* rgb */ color: rgb(66, 87, 203);
/* oklch */ color: oklch(50.9% 0.181 270.8);
Tailwind
colors: {
  custom: {
    50: '#8686dc',
    500: '#4257cb',
    950: '#000000',
  },
}
SCSS
$custom: #4257cb;
$custom-light: #8686dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4257cb",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 203
  },
  "hsl": {
    "h": 230.803,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50868,
    "c": 0.18056,
    "h": 270.8
  },
  "luminance": 0.12286
}

Semantic roles & 50–950 ramp

primary
#4257CB
secondary
#D2C997
accent
#C948E0
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4257CB

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

Preview Lab → · Contrast checker → · Palette generator →

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