#4256CB#4256CB

#4256CB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.7% C 0.182 H 271.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#4256CB
RGBrgb(66, 86, 203)
HSLhsl(231, 57%, 53%)
HSVhsv(231, 67%, 80%)
CMYKcmyk(67.5%, 57.6%, 0%, 20.4%)
CIE-LABlab(41.41, 30.61, -63.11)
CIE-LCHlch(41.41, 70.14, 295.88°)
OKLaboklab(50.68% 0.0034 -0.1818)
OKLCHoklch(50.68% 0.182 271.1)
XYZxyz(16.3504, 12.1241, 57.9669)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4256CB #CBB742
analogous
#429ACB #4256CB #7342CB
triadic
#4256CB #CB4256 #56CB42
tetradic
#4256CB #CB429A #CBB742 #42CB73
square
#4256CB #CB429A #CBB742 #42CB73
split-complementary
#4256CB #CB7342 #9ACB42
monochromatic
#202C73 #2D3EA3 #4256CB #7281D8 #A2ACE5

Accessibility & contrast

On white

6.13
#4256CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#4256CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4256CB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4256CB#FFFFFF#000000##FFFFFF
##4256CB1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4256cb;
/* rgb */ color: rgb(66, 86, 203);
/* oklch */ color: oklch(50.7% 0.182 271.1);
Tailwind
colors: {
  custom: {
    50: '#8685dc',
    500: '#4256cb',
    950: '#000000',
  },
}
SCSS
$custom: #4256cb;
$custom-light: #8685dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4256cb",
  "rgb": {
    "r": 66,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 231.241,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50679,
    "c": 0.18179,
    "h": 271.1
  },
  "luminance": 0.12126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4256CB

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

Preview Lab → · Contrast checker → · Palette generator →

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