#6151B2#6151B2

#6151B2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.148 H 287.4°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6151B2
RGBrgb(97, 81, 178)
HSLhsl(250, 39%, 51%)
HSVhsv(250, 54%, 70%)
CMYKcmyk(45.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(40.64, 31.40, -49.67)
CIE-LCHlch(40.64, 58.77, 302.30°)
OKLaboklab(50.11% 0.0443 -0.1414)
OKLCHoklch(50.11% 0.148 287.4)
XYZxyz(15.9058, 11.6400, 43.5195)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151B2 #A2B251
analogous
#5171B2 #6151B2 #9151B2
triadic
#6151B2 #B26151 #51B261
tetradic
#6151B2 #B25171 #A2B251 #51B291
square
#6151B2 #B25171 #A2B251 #51B291
split-complementary
#6151B2 #B29151 #71B251
monochromatic
#332A5F #493D89 #6151B2 #887BC5 #AEA6D8

Accessibility & contrast

On white

6.31
#6151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151B2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151B2#FFFFFF#000000##FFFFFF
##6151B21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#1E5DB0
Tritanopia (blue-blind)
#486679
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6151b2;
/* rgb */ color: rgb(97, 81, 178);
/* oklch */ color: oklch(50.1% 0.148 287.4);
Tailwind
colors: {
  custom: {
    50: '#9382ca',
    500: '#6151b2',
    950: '#000000',
  },
}
SCSS
$custom: #6151b2;
$custom-light: #9382ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6151b2",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 249.897,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.50112,
    "c": 0.14821,
    "h": 287.4
  },
  "luminance": 0.11641
}

Semantic roles & 50–950 ramp

primary
#6151B2
secondary
#BEC59A
accent
#CF59BB
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #6151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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