#4271DF#4271DF

#4271DF is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.5% C 0.176 H 264.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#4271DF
RGBrgb(66, 113, 223)
HSLhsl(222, 71%, 57%)
HSVhsv(222, 70%, 87%)
CMYKcmyk(70.4%, 49.3%, 0%, 12.5%)
CIE-LABlab(49.85, 20.65, -60.87)
CIE-LCHlch(49.85, 64.27, 288.74°)
OKLaboklab(57.49% -0.0177 -0.1748)
OKLCHoklch(57.49% 0.176 264.2)
XYZxyz(21.4665, 18.2940, 72.1975)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4271DF #DFB042
analogous
#42C0DF #4271DF #6242DF
triadic
#4271DF #DF4271 #71DF42
tetradic
#4271DF #DF42C0 #DFB042 #42DF62
square
#4271DF #DF42C0 #DFB042 #42DF62
split-complementary
#4271DF #DF6242 #C0DF42
monochromatic
#183C8E #2151C3 #4271DF #7698E8 #ABC0F1

Accessibility & contrast

On white

4.51
#4271DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#4271DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4271DF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4271DF#FFFFFF#000000##000000
##4271DF1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#317EE3
Deuteranopia (green-blind)
#0070DD
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #4271df;
/* rgb */ color: rgb(66, 113, 223);
/* oklch */ color: oklch(57.5% 0.176 264.2);
Tailwind
colors: {
  custom: {
    50: '#8999ea',
    500: '#4271df',
    950: '#000000',
  },
}
SCSS
$custom: #4271df;
$custom-light: #8999ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4271df",
  "rgb": {
    "r": 66,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 222.038,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57487,
    "c": 0.17568,
    "h": 264.2
  },
  "luminance": 0.18296
}

Semantic roles & 50–950 ramp

primary
#4271DF
secondary
#DFCB9E
accent
#B83AEE
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0D16
muted
#7E7E84

Preview Lab

Preview with #4271DF

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

Preview Lab → · Contrast checker → · Palette generator →

#4271DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva