#315FB2#315FB2

#315FB2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.8% C 0.141 H 261.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#315FB2
RGBrgb(49, 95, 178)
HSLhsl(219, 57%, 45%)
HSVhsv(219, 72%, 70%)
CMYKcmyk(72.5%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.30, 13.21, -48.78)
CIE-LCHlch(41.30, 50.53, 285.16°)
OKLaboklab(49.82% -0.0219 -0.1398)
OKLCHoklch(49.82% 0.142 261.1)
XYZxyz(13.3918, 12.0503, 43.7310)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FB2 #B28431
analogous
#319FB2 #315FB2 #4431B2
triadic
#315FB2 #B2315F #5FB231
tetradic
#315FB2 #B2319F #B28431 #31B244
square
#315FB2 #B2319F #B28431 #31B244
split-complementary
#315FB2 #B24431 #9FB231
monochromatic
#172C52 #244582 #315FB2 #517ECF #81A2DC

Accessibility & contrast

On white

6.16
#315FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#315FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FB2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FB2#FFFFFF#000000##FFFFFF
##315FB21.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#165CB0
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #315fb2;
/* rgb */ color: rgb(49, 95, 178);
/* oklch */ color: oklch(49.8% 0.141 261.1);
Tailwind
colors: {
  custom: {
    50: '#7a8bc9',
    500: '#315fb2',
    950: '#000000',
  },
}
SCSS
$custom: #315fb2;
$custom-light: #7a8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#315fb2",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 218.605,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49821,
    "c": 0.1415,
    "h": 261.1
  },
  "luminance": 0.12052
}

Semantic roles & 50–950 ramp

primary
#315FB2
secondary
#C5AA79
accent
#AA48E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #315FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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