#4251CC#4251CC

#4251CC is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.8% C 0.189 H 272.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#4251CC
RGBrgb(66, 81, 204)
HSLhsl(233, 58%, 53%)
HSVhsv(233, 68%, 80%)
CMYKcmyk(67.6%, 60.3%, 0%, 20%)
CIE-LABlab(40.25, 34.11, -65.58)
CIE-LCHlch(40.25, 73.92, 297.48°)
OKLaboklab(49.84% 0.0074 -0.1891)
OKLCHoklch(49.84% 0.189 272.2)
XYZxyz(16.0846, 11.4012, 58.4680)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4251CC #CCBD42
analogous
#4296CC #4251CC #7842CC
triadic
#4251CC #CC4251 #51CC42
tetradic
#4251CC #CC4296 #CCBD42 #42CC78
square
#4251CC #CC4296 #CCBD42 #42CC78
split-complementary
#4251CC #CC7842 #96CC42
monochromatic
#1F2974 #2C39A4 #4251CC #727DD9 #A2AAE6

Accessibility & contrast

On white

6.40
#4251CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4251CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4251CC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4251CC#FFFFFF#000000##FFFFFF
##4251CC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4251cc;
/* rgb */ color: rgb(66, 81, 204);
/* oklch */ color: oklch(49.8% 0.189 272.2);
Tailwind
colors: {
  custom: {
    50: '#8781dc',
    500: '#4251cc',
    950: '#000000',
  },
}
SCSS
$custom: #4251cc;
$custom-light: #8781dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4251cc",
  "rgb": {
    "r": 66,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 233.478,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49839,
    "c": 0.18922,
    "h": 272.2
  },
  "luminance": 0.11403
}

Semantic roles & 50–950 ramp

primary
#4251CC
secondary
#D3CC97
accent
#D047E1
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #4251CC

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

Preview Lab → · Contrast checker → · Palette generator →

#4251CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva