#6271F2#6271F2

#6271F2 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.5% C 0.192 H 274.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#6271F2
RGBrgb(98, 113, 242)
HSLhsl(234, 85%, 67%)
HSVhsv(234, 60%, 95%)
CMYKcmyk(59.5%, 53.3%, 0%, 5.1%)
CIE-LABlab(52.75, 32.21, -66.76)
CIE-LCHlch(52.75, 74.13, 295.76°)
OKLaboklab(60.52% 0.014 -0.1915)
OKLCHoklch(60.52% 0.192 274.2)
XYZxyz(26.9639, 20.8156, 86.5841)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6271F2 #F2E362
analogous
#62B9F2 #6271F2 #9B62F2
triadic
#6271F2 #F26271 #71F262
tetradic
#6271F2 #F262B9 #F2E362 #62F29B
square
#6271F2 #F262B9 #F2E362 #62F29B
split-complementary
#6271F2 #F29B62 #B9F262
monochromatic
#1124C9 #293EED #6271F2 #9BA4F7 #D3D7FB

Accessibility & contrast

On white

4.07
#6271F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#6271F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6271F2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6271F2#FFFFFF#000000##000000
##6271F21.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A84F6
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#008FA7
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #6271f2;
/* rgb */ color: rgb(98, 113, 242);
/* oklch */ color: oklch(60.5% 0.192 274.2);
Tailwind
colors: {
  custom: {
    50: '#9b99f7',
    500: '#6271f2',
    950: '#000000',
  },
}
SCSS
$custom: #6271f2;
$custom-light: #9b99f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6271f2",
  "rgb": {
    "r": 98,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 233.75,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60516,
    "c": 0.19197,
    "h": 274.2
  },
  "luminance": 0.20818
}

Semantic roles & 50–950 ramp

primary
#6271F2
secondary
#EFEAC1
accent
#CA04E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #6271F2

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

Preview Lab → · Contrast checker → · Palette generator →

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