#315FC9#315FC9

#315FC9 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.5% C 0.173 H 263.7°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#315FC9
RGBrgb(49, 95, 201)
HSLhsl(222, 61%, 49%)
HSVhsv(222, 76%, 79%)
CMYKcmyk(75.6%, 52.7%, 0%, 21.2%)
CIE-LABlab(42.84, 21.86, -59.67)
CIE-LCHlch(42.84, 63.55, 290.12°)
OKLaboklab(51.5% -0.0189 -0.1718)
OKLCHoklch(51.5% 0.173 263.7)
XYZxyz(15.8977, 13.0526, 56.9286)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FC9 #C99B31
analogous
#31ABC9 #315FC9 #4F31C9
triadic
#315FC9 #C9315F #5FC931
tetradic
#315FC9 #C931AB #C99B31 #31C94F
square
#315FC9 #C931AB #C99B31 #31C94F
split-complementary
#315FC9 #C94F31 #ABC931
monochromatic
#193067 #254898 #315FC9 #5F84D8 #90AAE4

Accessibility & contrast

On white

5.82
#315FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#315FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FC9
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FC9#FFFFFF#000000##FFFFFF
##315FC91.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116DCD
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #315fc9;
/* rgb */ color: rgb(49, 95, 201);
/* oklch */ color: oklch(51.5% 0.173 263.7);
Tailwind
colors: {
  custom: {
    50: '#7f8bda',
    500: '#315fc9',
    950: '#000000',
  },
}
SCSS
$custom: #315fc9;
$custom-light: #7f8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#315fc9",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 201
  },
  "hsl": {
    "h": 221.842,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51496,
    "c": 0.17288,
    "h": 263.7
  },
  "luminance": 0.13054
}

Semantic roles & 50–950 ramp

primary
#315FC9
secondary
#CFB987
accent
#B344E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #315FC9

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

Preview Lab → · Contrast checker → · Palette generator →

#315FC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva