#315BBB#315BBB

#315BBB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.159 H 263.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#315BBB
RGBrgb(49, 91, 187)
HSLhsl(222, 58%, 46%)
HSVhsv(222, 74%, 73%)
CMYKcmyk(73.8%, 51.3%, 0%, 26.7%)
CIE-LABlab(40.77, 19.20, -54.89)
CIE-LCHlch(40.77, 58.15, 289.28°)
OKLaboklab(49.61% -0.0172 -0.1579)
OKLCHoklch(49.61% 0.159 263.8)
XYZxyz(13.9742, 11.7215, 48.5301)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BBB #BB9131
analogous
#31A0BB #315BBB #4C31BB
triadic
#315BBB #BB315B #5BBB31
tetradic
#315BBB #BB31A0 #BB9131 #31BB4C
square
#315BBB #BB31A0 #BB9131 #31BB4C
split-complementary
#315BBB #BB4C31 #A0BB31
monochromatic
#182C5A #24438B #315BBB #567CD3 #87A2E0

Accessibility & contrast

On white

6.28
#315BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#315BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BBB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BBB#FFFFFF#000000##FFFFFF
##315BBB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BE
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315bbb;
/* rgb */ color: rgb(49, 91, 187);
/* oklch */ color: oklch(49.6% 0.159 263.8);
Tailwind
colors: {
  custom: {
    50: '#7c88d0',
    500: '#315bbb',
    950: '#000000',
  },
}
SCSS
$custom: #315bbb;
$custom-light: #7c88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#315bbb",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 221.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4961,
    "c": 0.1588,
    "h": 263.8
  },
  "luminance": 0.11723
}

Semantic roles & 50–950 ramp

primary
#315BBB
secondary
#C9B27F
accent
#B246E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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