#315BB7#315BB7

#315BB7 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.153 H 263.4°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#315BB7
RGBrgb(49, 91, 183)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 72%)
CMYKcmyk(73.2%, 50.3%, 0%, 28.2%)
CIE-LABlab(40.50, 17.69, -53.00)
CIE-LCHlch(40.50, 55.87, 288.46°)
OKLaboklab(49.31% -0.0176 -0.1523)
OKLCHoklch(49.31% 0.153 263.4)
XYZxyz(13.5519, 11.5526, 46.3062)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB7 #B78D31
analogous
#319EB7 #315BB7 #4A31B7
triadic
#315BB7 #B7315B #5BB731
tetradic
#315BB7 #B7319E #B78D31 #31B74A
square
#315BB7 #B7319E #B78D31 #31B74A
split-complementary
#315BB7 #B74A31 #9EB731
monochromatic
#172B56 #244387 #315BB7 #547BD1 #84A0DE

Accessibility & contrast

On white

6.34
#315BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#315BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB7#FFFFFF#000000##FFFFFF
##315BB71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315bb7;
/* rgb */ color: rgb(49, 91, 183);
/* oklch */ color: oklch(49.3% 0.153 263.4);
Tailwind
colors: {
  custom: {
    50: '#7b88cd',
    500: '#315bb7',
    950: '#000000',
  },
}
SCSS
$custom: #315bb7;
$custom-light: #7b88cd;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb7",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 221.194,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49314,
    "c": 0.15331,
    "h": 263.4
  },
  "luminance": 0.11554
}

Semantic roles & 50–950 ramp

primary
#315BB7
secondary
#C8B07C
accent
#B147E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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