#4256C5#4256C5

#4256C5 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.2% C 0.174 H 271.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#4256C5
RGBrgb(66, 86, 197)
HSLhsl(231, 53%, 52%)
HSVhsv(231, 66%, 77%)
CMYKcmyk(66.5%, 56.3%, 0%, 22.7%)
CIE-LABlab(40.97, 28.50, -60.36)
CIE-LCHlch(40.97, 66.75, 295.28°)
OKLaboklab(50.21% 0.0032 -0.1737)
OKLCHoklch(50.21% 0.174 271.1)
XYZxyz(15.6492, 11.8436, 54.2738)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4256C5 #C5B142
analogous
#4297C5 #4256C5 #7042C5
triadic
#4256C5 #C54256 #56C542
tetradic
#4256C5 #C54297 #C5B142 #42C570
square
#4256C5 #C54297 #C5B142 #42C570
split-complementary
#4256C5 #C57042 #97C542
monochromatic
#212C6C #2F409A #4256C5 #7180D3 #A0AAE2

Accessibility & contrast

On white

6.23
#4256C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#4256C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4256C5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4256C5#FFFFFF#000000##FFFFFF
##4256C51.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4256c5;
/* rgb */ color: rgb(66, 86, 197);
/* oklch */ color: oklch(50.2% 0.174 271.1);
Tailwind
colors: {
  custom: {
    50: '#8585d7',
    500: '#4256c5',
    950: '#000000',
  },
}
SCSS
$custom: #4256c5;
$custom-light: #8585d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4256c5",
  "rgb": {
    "r": 66,
    "g": 86,
    "b": 197
  },
  "hsl": {
    "h": 230.84,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50206,
    "c": 0.17371,
    "h": 271.1
  },
  "luminance": 0.11845
}

Semantic roles & 50–950 ramp

primary
#4256C5
secondary
#CEC595
accent
#C64BDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4256C5

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

Preview Lab → · Contrast checker → · Palette generator →

#4256C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva