#4255A2#4255A2

#4255A2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.126 H 270.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4255A2
RGBrgb(66, 85, 162)
HSLhsl(228, 42%, 45%)
HSVhsv(228, 59%, 64%)
CMYKcmyk(59.3%, 47.5%, 0%, 36.5%)
CIE-LABlab(38.31, 16.84, -44.04)
CIE-LCHlch(38.31, 47.15, 290.92°)
OKLaboklab(47.44% 0.0012 -0.1257)
OKLCHoklch(47.44% 0.126 270.6)
XYZxyz(12.0147, 10.2629, 35.5232)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4255A2 #A28F42
analogous
#4285A2 #4255A2 #5F42A2
triadic
#4255A2 #A24255 #55A242
tetradic
#4255A2 #A24285 #A28F42 #42A25F
square
#4255A2 #A24285 #A28F42 #42A25F
split-complementary
#4255A2 #A25F42 #85A242
monochromatic
#1F274B #303E77 #4255A2 #6275BF #8E9BD1

Accessibility & contrast

On white

6.88
#4255A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4255A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4255A2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4255A2#FFFFFF#000000##FFFFFF
##4255A21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305FA5
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4255a2;
/* rgb */ color: rgb(66, 85, 162);
/* oklch */ color: oklch(47.4% 0.126 270.6);
Tailwind
colors: {
  custom: {
    50: '#7f84be',
    500: '#4255a2',
    950: '#000000',
  },
}
SCSS
$custom: #4255a2;
$custom-light: #7f84be;
$custom-dark: #000000;
JSON
{
  "hex": "#4255a2",
  "rgb": {
    "r": 66,
    "g": 85,
    "b": 162
  },
  "hsl": {
    "h": 228.125,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47439,
    "c": 0.12571,
    "h": 270.6
  },
  "luminance": 0.10264
}

Semantic roles & 50–950 ramp

primary
#4255A2
secondary
#BCB184
accent
#B956D2
background
#F8F8FB
surface
#EFEFF7
border
#CACAD0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #4255A2

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

Preview Lab → · Contrast checker → · Palette generator →

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