#7271EF#7271EF

#7271EF is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.4% C 0.185 H 279.8°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7271EF
RGBrgb(114, 113, 239)
HSLhsl(240, 80%, 69%)
HSVhsv(240, 53%, 94%)
CMYKcmyk(52.3%, 52.7%, 0%, 6.3%)
CIE-LABlab(53.62, 34.26, -63.63)
CIE-LCHlch(53.62, 72.27, 298.30°)
OKLaboklab(61.38% 0.0315 -0.1818)
OKLCHoklch(61.38% 0.185 279.8)
XYZxyz(28.4197, 21.6179, 84.3198)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271EF #EEEF71
analogous
#71AFEF #7271EF #B171EF
triadic
#7271EF #EF7271 #71EF72
tetradic
#7271EF #EF71AF #EEEF71 #71EFB1
square
#7271EF #EF71AF #EEEF71 #71EFB1
split-complementary
#7271EF #EFB171 #AFEF71
monochromatic
#1917CE #3B3AE9 #7271EF #A9A8F5 #DFDFFB

Accessibility & contrast

On white

3.94
#7271EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7271EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271EF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271EF#FFFFFF#000000##000000
##7271EF1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2985F3
Deuteranopia (green-blind)
#147BEC
Tritanopia (blue-blind)
#3B8DA5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7271ef;
/* rgb */ color: rgb(114, 113, 239);
/* oklch */ color: oklch(61.4% 0.185 279.8);
Tailwind
colors: {
  custom: {
    50: '#a39af5',
    500: '#7271ef',
    950: '#000000',
  },
}
SCSS
$custom: #7271ef;
$custom-light: #a39af5;
$custom-dark: #000000;
JSON
{
  "hex": "#7271ef",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 240.476,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61382,
    "c": 0.18455,
    "h": 279.8
  },
  "luminance": 0.2162
}

Semantic roles & 50–950 ramp

primary
#7271EF
secondary
#F0F0CB
accent
#DC09DA
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7271EF

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

Preview Lab → · Contrast checker → · Palette generator →

#7271EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva