#6271EA#6271EA

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

Color values

HEX#6271EA
RGBrgb(98, 113, 234)
HSLhsl(233, 76%, 65%)
HSVhsv(233, 58%, 92%)
CMYKcmyk(58.1%, 51.7%, 0%, 8.2%)
CIE-LABlab(52.23, 29.62, -63.14)
CIE-LCHlch(52.23, 69.74, 295.13°)
OKLaboklab(59.96% 0.0135 -0.1808)
OKLCHoklch(59.96% 0.181 274.3)
XYZxyz(25.7886, 20.3455, 80.3941)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6271EA #EADB62
analogous
#62B5EA #6271EA #9762EA
triadic
#6271EA #EA6271 #71EA62
tetradic
#6271EA #EA62B5 #EADB62 #62EA97
square
#6271EA #EA62B5 #EADB62 #62EA97
split-complementary
#6271EA #EA9762 #B5EA62
monochromatic
#192AB9 #2C40E3 #6271EA #98A2F1 #CED3F8

Accessibility & contrast

On white

4.14
#6271EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#6271EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6271EA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6271EA#FFFFFF#000000##000000
##6271EA1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B83EE
Deuteranopia (green-blind)
#0077E7
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6271ea;
/* rgb */ color: rgb(98, 113, 234);
/* oklch */ color: oklch(60.0% 0.181 274.3);
Tailwind
colors: {
  custom: {
    50: '#9a99f1',
    500: '#6271ea',
    950: '#000000',
  },
}
SCSS
$custom: #6271ea;
$custom-light: #9a99f1;
$custom-dark: #000000;
JSON
{
  "hex": "#6271ea",
  "rgb": {
    "r": 98,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 233.382,
    "s": 76.404,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59959,
    "c": 0.18129,
    "h": 274.3
  },
  "luminance": 0.20347
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6271EA

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

Preview Lab → · Contrast checker → · Palette generator →

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