#315BA1#315BA1

#315BA1 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.123 H 260.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#315BA1
RGBrgb(49, 91, 161)
HSLhsl(218, 53%, 41%)
HSVhsv(218, 70%, 63%)
CMYKcmyk(69.6%, 43.5%, 0%, 36.9%)
CIE-LABlab(39.08, 9.43, -42.26)
CIE-LCHlch(39.08, 43.30, 282.58°)
OKLaboklab(47.78% -0.0212 -0.1207)
OKLCHoklch(47.78% 0.123 260)
XYZxyz(11.4384, 10.7072, 35.1752)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BA1 #A17731
analogous
#3193A1 #315BA1 #3F31A1
triadic
#315BA1 #A1315B #5BA131
tetradic
#315BA1 #A13193 #A17731 #31A13F
square
#315BA1 #A13193 #A17731 #31A13F
split-complementary
#315BA1 #A13F31 #93A131
monochromatic
#142643 #234072 #315BA1 #4878C7 #779AD6

Accessibility & contrast

On white

6.68
#315BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#315BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BA1
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BA1#FFFFFF#000000##FFFFFF
##315BA11.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A4
Deuteranopia (green-blind)
#2757A0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315ba1;
/* rgb */ color: rgb(49, 91, 161);
/* oklch */ color: oklch(47.8% 0.123 260.0);
Tailwind
colors: {
  custom: {
    50: '#7688bd',
    500: '#315ba1',
    950: '#000000',
  },
}
SCSS
$custom: #315ba1;
$custom-light: #7688bd;
$custom-dark: #000000;
JSON
{
  "hex": "#315ba1",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 217.5,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47775,
    "c": 0.12256,
    "h": 260
  },
  "luminance": 0.10708
}

Semantic roles & 50–950 ramp

primary
#315BA1
secondary
#BEA170
accent
#A64BDD
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #315BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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