#3151C8#3151C8

#3151C8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.189 H 267.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3151C8
RGBrgb(49, 81, 200)
HSLhsl(227, 61%, 49%)
HSVhsv(227, 76%, 78%)
CMYKcmyk(75.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(39.08, 30.55, -65.20)
CIE-LCHlch(39.08, 72.00, 295.10°)
OKLaboklab(48.64% -0.0089 -0.1883)
OKLCHoklch(48.64% 0.189 267.3)
XYZxyz(14.6307, 10.7063, 55.9278)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151C8 #C8A831
analogous
#319DC8 #3151C8 #5D31C8
triadic
#3151C8 #C83151 #51C831
tetradic
#3151C8 #C8319D #C8A831 #31C85D
square
#3151C8 #C8319D #C8A831 #31C85D
split-complementary
#3151C8 #C85D31 #9DC831
monochromatic
#192966 #253D97 #3151C8 #5F78D8 #90A1E4

Accessibility & contrast

On white

6.68
#3151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151C8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151C8#FFFFFF#000000##FFFFFF
##3151C81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3151c8;
/* rgb */ color: rgb(49, 81, 200);
/* oklch */ color: oklch(48.6% 0.189 267.3);
Tailwind
colors: {
  custom: {
    50: '#7f81da',
    500: '#3151c8',
    950: '#000000',
  },
}
SCSS
$custom: #3151c8;
$custom-light: #7f81da;
$custom-dark: #000000;
JSON
{
  "hex": "#3151c8",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 227.285,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48643,
    "c": 0.18855,
    "h": 267.3
  },
  "luminance": 0.10708
}

Semantic roles & 50–950 ramp

primary
#3151C8
secondary
#CEBF86
accent
#C244E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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