#4255C6#4255C6

#4255C6 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.1% C 0.176 H 271.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#4255C6
RGBrgb(66, 85, 198)
HSLhsl(231, 54%, 52%)
HSVhsv(231, 67%, 78%)
CMYKcmyk(66.7%, 57.1%, 0%, 22.4%)
CIE-LABlab(40.79, 29.49, -61.23)
CIE-LCHlch(40.79, 67.96, 295.71°)
OKLaboklab(50.09% 0.0041 -0.1763)
OKLCHoklch(50.09% 0.176 271.3)
XYZxyz(15.6849, 11.7310, 54.8529)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4255C6 #C6B342
analogous
#4297C6 #4255C6 #7142C6
triadic
#4255C6 #C64255 #55C642
tetradic
#4255C6 #C64297 #C6B342 #42C671
square
#4255C6 #C64297 #C6B342 #42C671
split-complementary
#4255C6 #C67142 #97C642
monochromatic
#212C6D #2F3F9C #4255C6 #717FD4 #A0AAE2

Accessibility & contrast

On white

6.28
#4255C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#4255C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4255C6
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4255C6#FFFFFF#000000##FFFFFF
##4255C61.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CA
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4255c6;
/* rgb */ color: rgb(66, 85, 198);
/* oklch */ color: oklch(50.1% 0.176 271.3);
Tailwind
colors: {
  custom: {
    50: '#8584d8',
    500: '#4255c6',
    950: '#000000',
  },
}
SCSS
$custom: #4255c6;
$custom-light: #8584d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4255c6",
  "rgb": {
    "r": 66,
    "g": 85,
    "b": 198
  },
  "hsl": {
    "h": 231.364,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50094,
    "c": 0.17631,
    "h": 271.3
  },
  "luminance": 0.11732
}

Semantic roles & 50–950 ramp

primary
#4255C6
secondary
#CFC795
accent
#C84BDD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #4255C6

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

Preview Lab → · Contrast checker → · Palette generator →

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