#6151B3#6151B3

#6151B3 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.150 H 287.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6151B3
RGBrgb(97, 81, 179)
HSLhsl(250, 39%, 51%)
HSVhsv(250, 55%, 70%)
CMYKcmyk(45.8%, 54.7%, 0%, 29.8%)
CIE-LABlab(40.70, 31.70, -50.16)
CIE-LCHlch(40.70, 59.33, 302.30°)
OKLaboklab(50.18% 0.0443 -0.1429)
OKLCHoklch(50.18% 0.15 287.2)
XYZxyz(16.0065, 11.6803, 44.0502)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151B3 #A3B351
analogous
#5172B3 #6151B3 #9251B3
triadic
#6151B3 #B36151 #51B361
tetradic
#6151B3 #B35172 #A3B351 #51B392
square
#6151B3 #B35172 #A3B351 #51B392
split-complementary
#6151B3 #B39251 #72B351
monochromatic
#332A60 #493C8A #6151B3 #887CC6 #AEA6D8

Accessibility & contrast

On white

6.29
#6151B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6151B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151B3
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151B3#FFFFFF#000000##FFFFFF
##6151B31.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B6
Deuteranopia (green-blind)
#1D5DB1
Tritanopia (blue-blind)
#47667A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6151b3;
/* rgb */ color: rgb(97, 81, 179);
/* oklch */ color: oklch(50.2% 0.150 287.2);
Tailwind
colors: {
  custom: {
    50: '#9382ca',
    500: '#6151b3',
    950: '#000000',
  },
}
SCSS
$custom: #6151b3;
$custom-light: #9382ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6151b3",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 249.796,
    "s": 39.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50181,
    "c": 0.14958,
    "h": 287.2
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#6151B3
secondary
#BFC69A
accent
#CF59BC
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #6151B3

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

Preview Lab → · Contrast checker → · Palette generator →

#6151B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva