#3151C2#3151C2

#3151C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.181 H 267.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#3151C2
RGBrgb(49, 81, 194)
HSLhsl(227, 60%, 48%)
HSVhsv(227, 75%, 76%)
CMYKcmyk(74.7%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.61, 28.33, -62.49)
CIE-LCHlch(38.61, 68.61, 294.39°)
OKLaboklab(48.14% -0.009 -0.1804)
OKLCHoklch(48.14% 0.181 267.1)
XYZxyz(13.9433, 10.4314, 52.3071)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151C2 #C2A231
analogous
#3199C2 #3151C2 #5A31C2
triadic
#3151C2 #C23151 #51C231
tetradic
#3151C2 #C23199 #C2A231 #31C25A
square
#3151C2 #C23199 #C2A231 #31C25A
split-complementary
#3151C2 #C25A31 #99C231
monochromatic
#182860 #253D91 #3151C2 #5B76D6 #8C9FE2

Accessibility & contrast

On white

6.80
#3151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3151C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151C2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151C2#FFFFFF#000000##FFFFFF
##3151C21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3151c2;
/* rgb */ color: rgb(49, 81, 194);
/* oklch */ color: oklch(48.1% 0.181 267.1);
Tailwind
colors: {
  custom: {
    50: '#7e81d5',
    500: '#3151c2',
    950: '#000000',
  },
}
SCSS
$custom: #3151c2;
$custom-light: #7e81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3151c2",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 226.759,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4814,
    "c": 0.1806,
    "h": 267.1
  },
  "luminance": 0.10433
}

Semantic roles & 50–950 ramp

primary
#3151C2
secondary
#CCBC83
accent
#C045E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3151C2

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

Preview Lab → · Contrast checker → · Palette generator →

#3151C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva