#4256C4#4256C4

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

Color values

HEX#4256C4
RGBrgb(66, 86, 196)
HSLhsl(231, 52%, 51%)
HSVhsv(231, 66%, 77%)
CMYKcmyk(66.3%, 56.1%, 0%, 23.1%)
CIE-LABlab(40.89, 28.15, -59.90)
CIE-LCHlch(40.89, 66.18, 295.17°)
OKLaboklab(50.13% 0.0032 -0.1723)
OKLCHoklch(50.13% 0.172 271.1)
XYZxyz(15.5350, 11.7979, 53.6724)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4256C4 #C4B042
analogous
#4297C4 #4256C4 #6F42C4
triadic
#4256C4 #C44256 #56C442
tetradic
#4256C4 #C44297 #C4B042 #42C46F
square
#4256C4 #C44297 #C4B042 #42C46F
split-complementary
#4256C4 #C46F42 #97C442
monochromatic
#212C6A #304099 #4256C4 #7180D3 #9FA9E1

Accessibility & contrast

On white

6.25
#4256C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4256C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4256C4
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4256C4#FFFFFF#000000##FFFFFF
##4256C41.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4256c4;
/* rgb */ color: rgb(66, 86, 196);
/* oklch */ color: oklch(50.1% 0.172 271.1);
Tailwind
colors: {
  custom: {
    50: '#8585d7',
    500: '#4256c4',
    950: '#000000',
  },
}
SCSS
$custom: #4256c4;
$custom-light: #8585d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4256c4",
  "rgb": {
    "r": 66,
    "g": 86,
    "b": 196
  },
  "hsl": {
    "h": 230.769,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.50128,
    "c": 0.17235,
    "h": 271.1
  },
  "luminance": 0.11799
}

Semantic roles & 50–950 ramp

primary
#4256C4
secondary
#CEC594
accent
#C64CDC
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4256C4

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

Preview Lab → · Contrast checker → · Palette generator →

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