#4251D2#4251D2

#4251D2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.197 H 272.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4251D2
RGBrgb(66, 81, 210)
HSLhsl(234, 62%, 54%)
HSVhsv(234, 69%, 82%)
CMYKcmyk(68.6%, 61.4%, 0%, 17.6%)
CIE-LABlab(40.73, 36.19, -68.26)
CIE-LCHlch(40.73, 77.26, 297.93°)
OKLaboklab(50.34% 0.0072 -0.1969)
OKLCHoklch(50.34% 0.197 272.1)
XYZxyz(16.8181, 11.6946, 62.3312)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4251D2 #D2C342
analogous
#4299D2 #4251D2 #7B42D2
triadic
#4251D2 #D24251 #51D242
tetradic
#4251D2 #D24299 #D2C342 #42D27B
square
#4251D2 #D24299 #D2C342 #42D27B
split-complementary
#4251D2 #D27B42 #99D242
monochromatic
#1E277C #2937AD #4251D2 #737FDE #A5ACEA

Accessibility & contrast

On white

6.29
#4251D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4251D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4251D2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4251D2#FFFFFF#000000##FFFFFF
##4251D21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4251d2;
/* rgb */ color: rgb(66, 81, 210);
/* oklch */ color: oklch(50.3% 0.197 272.1);
Tailwind
colors: {
  custom: {
    50: '#8882e1',
    500: '#4251d2',
    950: '#000000',
  },
}
SCSS
$custom: #4251d2;
$custom-light: #8882e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4251d2",
  "rgb": {
    "r": 66,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 233.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50341,
    "c": 0.19708,
    "h": 272.1
  },
  "luminance": 0.11696
}

Semantic roles & 50–950 ramp

primary
#4251D2
secondary
#D7D099
accent
#D443E5
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4251D2

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

Preview Lab → · Contrast checker → · Palette generator →

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