#4257A2#4257A2

#4257A2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.123 H 269.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#4257A2
RGBrgb(66, 87, 162)
HSLhsl(227, 42%, 45%)
HSVhsv(227, 59%, 64%)
CMYKcmyk(59.3%, 46.3%, 0%, 36.5%)
CIE-LABlab(38.87, 15.54, -43.15)
CIE-LCHlch(38.87, 45.87, 289.81°)
OKLaboklab(47.87% -0.001 -0.123)
OKLCHoklch(47.87% 0.123 269.5)
XYZxyz(12.1744, 10.5823, 35.5765)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4257A2 #A28D42
analogous
#4287A2 #4257A2 #5D42A2
triadic
#4257A2 #A24257 #57A242
tetradic
#4257A2 #A24287 #A28D42 #42A25D
square
#4257A2 #A24287 #A28D42 #42A25D
split-complementary
#4257A2 #A25D42 #87A242
monochromatic
#1F284B #304077 #4257A2 #6276BF #8E9CD1

Accessibility & contrast

On white

6.74
#4257A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#4257A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4257A2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4257A2#FFFFFF#000000##FFFFFF
##4257A21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3460A5
Deuteranopia (green-blind)
#2658A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4257a2;
/* rgb */ color: rgb(66, 87, 162);
/* oklch */ color: oklch(47.9% 0.123 269.5);
Tailwind
colors: {
  custom: {
    50: '#7f86be',
    500: '#4257a2',
    950: '#000000',
  },
}
SCSS
$custom: #4257a2;
$custom-light: #7f86be;
$custom-dark: #000000;
JSON
{
  "hex": "#4257a2",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 226.875,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47865,
    "c": 0.12305,
    "h": 269.5
  },
  "luminance": 0.10583
}

Semantic roles & 50–950 ramp

primary
#4257A2
secondary
#BCB084
accent
#B756D2
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0B12
muted
#7C7C81

Preview Lab

Preview with #4257A2

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

Preview Lab → · Contrast checker → · Palette generator →

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