#4256CA#4256CA

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

Color values

HEX#4256CA
RGBrgb(66, 86, 202)
HSLhsl(231, 56%, 53%)
HSVhsv(231, 67%, 79%)
CMYKcmyk(67.3%, 57.4%, 0%, 20.8%)
CIE-LABlab(41.34, 30.26, -62.65)
CIE-LCHlch(41.34, 69.58, 295.78°)
OKLaboklab(50.6% 0.0033 -0.1804)
OKLCHoklch(50.6% 0.18 271.1)
XYZxyz(16.2316, 12.0766, 57.3413)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4256CA #CAB642
analogous
#429ACA #4256CA #7242CA
triadic
#4256CA #CA4256 #56CA42
tetradic
#4256CA #CA429A #CAB642 #42CA72
square
#4256CA #CA429A #CAB642 #42CA72
split-complementary
#4256CA #CA7242 #9ACA42
monochromatic
#202C72 #2D3EA2 #4256CA #7281D7 #A2ABE5

Accessibility & contrast

On white

6.15
#4256CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#4256CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4256CA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4256CA#FFFFFF#000000##FFFFFF
##4256CA1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4256ca;
/* rgb */ color: rgb(66, 86, 202);
/* oklch */ color: oklch(50.6% 0.180 271.1);
Tailwind
colors: {
  custom: {
    50: '#8685db',
    500: '#4256ca',
    950: '#000000',
  },
}
SCSS
$custom: #4256ca;
$custom-light: #8685db;
$custom-dark: #000000;
JSON
{
  "hex": "#4256ca",
  "rgb": {
    "r": 66,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 231.176,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.506,
    "c": 0.18045,
    "h": 271.1
  },
  "luminance": 0.12078
}

Semantic roles & 50–950 ramp

primary
#4256CA
secondary
#D1C996
accent
#C948DF
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4256CA

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

Preview Lab → · Contrast checker → · Palette generator →

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