#4255C2#4255C2

#4255C2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.8% C 0.171 H 271.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#4255C2
RGBrgb(66, 85, 194)
HSLhsl(231, 51%, 51%)
HSVhsv(231, 66%, 76%)
CMYKcmyk(66%, 56.2%, 0%, 23.9%)
CIE-LABlab(40.49, 28.08, -59.39)
CIE-LCHlch(40.49, 65.69, 295.31°)
OKLaboklab(49.78% 0.004 -0.1708)
OKLCHoklch(49.78% 0.171 271.3)
XYZxyz(15.2296, 11.5489, 52.4550)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4255C2 #C2AF42
analogous
#4295C2 #4255C2 #6F42C2
triadic
#4255C2 #C24255 #55C242
tetradic
#4255C2 #C24295 #C2AF42 #42C26F
square
#4255C2 #C24295 #C2AF42 #42C26F
split-complementary
#4255C2 #C26F42 #95C242
monochromatic
#222C68 #314096 #4255C2 #707FD1 #9FA8E0

Accessibility & contrast

On white

6.34
#4255C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4255C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4255C2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4255C2#FFFFFF#000000##FFFFFF
##4255C21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4255c2;
/* rgb */ color: rgb(66, 85, 194);
/* oklch */ color: oklch(49.8% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#8584d5',
    500: '#4255c2',
    950: '#000000',
  },
}
SCSS
$custom: #4255c2;
$custom-light: #8584d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4255c2",
  "rgb": {
    "r": 66,
    "g": 85,
    "b": 194
  },
  "hsl": {
    "h": 231.094,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4978,
    "c": 0.17089,
    "h": 271.3
  },
  "luminance": 0.1155
}

Semantic roles & 50–950 ramp

primary
#4255C2
secondary
#CCC494
accent
#C64DDB
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #4255C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4255C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva