#6271EB#6271EB

#6271EB is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.0% C 0.183 H 274.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#6271EB
RGBrgb(98, 113, 235)
HSLhsl(233, 77%, 65%)
HSVhsv(233, 58%, 92%)
CMYKcmyk(58.3%, 51.9%, 0%, 7.8%)
CIE-LABlab(52.29, 29.94, -63.59)
CIE-LCHlch(52.29, 70.29, 295.21°)
OKLaboklab(60.03% 0.0136 -0.1821)
OKLCHoklch(60.03% 0.183 274.3)
XYZxyz(25.9326, 20.4031, 81.1528)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6271EB #EBDC62
analogous
#62B5EB #6271EB #9862EB
triadic
#6271EB #EB6271 #71EB62
tetradic
#6271EB #EB62B5 #EBDC62 #62EB98
square
#6271EB #EB62B5 #EBDC62 #62EB98
split-complementary
#6271EB #EB9862 #B5EB62
monochromatic
#182ABB #2C40E4 #6271EB #98A2F2 #CFD3F9

Accessibility & contrast

On white

4.13
#6271EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#6271EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6271EB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6271EB#FFFFFF#000000##000000
##6271EB1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2983EF
Deuteranopia (green-blind)
#0077E8
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6271eb;
/* rgb */ color: rgb(98, 113, 235);
/* oklch */ color: oklch(60.0% 0.183 274.3);
Tailwind
colors: {
  custom: {
    50: '#9a99f2',
    500: '#6271eb',
    950: '#000000',
  },
}
SCSS
$custom: #6271eb;
$custom-light: #9a99f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6271eb",
  "rgb": {
    "r": 98,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 233.431,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60027,
    "c": 0.18263,
    "h": 274.3
  },
  "luminance": 0.20405
}

Semantic roles & 50–950 ramp

primary
#6271EB
secondary
#EBE6BD
accent
#C30CDA
background
#FAF9FE
surface
#F3F2FD
border
#CDCCD5
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6271EB

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

Preview Lab → · Contrast checker → · Palette generator →

#6271EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva