#315BB3#315BB3

#315BB3 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.148 H 262.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#315BB3
RGBrgb(49, 91, 179)
HSLhsl(221, 57%, 45%)
HSVhsv(221, 73%, 70%)
CMYKcmyk(72.6%, 49.2%, 0%, 29.8%)
CIE-LABlab(40.23, 16.19, -51.08)
CIE-LCHlch(40.23, 53.59, 287.58°)
OKLaboklab(49.02% -0.0182 -0.1466)
OKLCHoklch(49.02% 0.148 262.9)
XYZxyz(13.1415, 11.3884, 44.1447)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BB3 #B38931
analogous
#319CB3 #315BB3 #4831B3
triadic
#315BB3 #B3315B #5BB331
tetradic
#315BB3 #B3319C #B38931 #31B348
square
#315BB3 #B3319C #B38931 #31B348
split-complementary
#315BB3 #B34831 #9CB331
monochromatic
#172A53 #244383 #315BB3 #527AD0 #829FDD

Accessibility & contrast

On white

6.41
#315BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#315BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BB3
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BB3#FFFFFF#000000##FFFFFF
##315BB31.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315bb3;
/* rgb */ color: rgb(49, 91, 179);
/* oklch */ color: oklch(49.0% 0.148 262.9);
Tailwind
colors: {
  custom: {
    50: '#7a88ca',
    500: '#315bb3',
    950: '#000000',
  },
}
SCSS
$custom: #315bb3;
$custom-light: #7a88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#315bb3",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 179
  },
  "hsl": {
    "h": 220.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49022,
    "c": 0.14777,
    "h": 262.9
  },
  "luminance": 0.1139
}

Semantic roles & 50–950 ramp

primary
#315BB3
secondary
#C6AD7A
accent
#AF48E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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