#315BA2#315BA2

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

Color values

HEX#315BA2
RGBrgb(49, 91, 162)
HSLhsl(218, 54%, 41%)
HSVhsv(218, 70%, 64%)
CMYKcmyk(69.8%, 43.8%, 0%, 36.5%)
CIE-LABlab(39.14, 9.81, -42.76)
CIE-LCHlch(39.14, 43.87, 282.92°)
OKLaboklab(47.84% -0.021 -0.1222)
OKLCHoklch(47.84% 0.124 260.2)
XYZxyz(11.5270, 10.7426, 35.6415)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315BA2 #A27831
analogous
#3194A2 #315BA2 #4031A2
triadic
#315BA2 #A2315B #5BA231
tetradic
#315BA2 #A23194 #A27831 #31A240
square
#315BA2 #A23194 #A27831 #31A240
split-complementary
#315BA2 #A24031 #94A231
monochromatic
#152644 #234173 #315BA2 #4878C8 #779BD6

Accessibility & contrast

On white

6.67
#315BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#315BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315BA2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315BA2#FFFFFF#000000##FFFFFF
##315BA21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#2657A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #315ba2;
/* rgb */ color: rgb(49, 91, 162);
/* oklch */ color: oklch(47.8% 0.124 260.2);
Tailwind
colors: {
  custom: {
    50: '#7688be',
    500: '#315ba2',
    950: '#000000',
  },
}
SCSS
$custom: #315ba2;
$custom-light: #7688be;
$custom-dark: #000000;
JSON
{
  "hex": "#315ba2",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 217.699,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47841,
    "c": 0.12398,
    "h": 260.2
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#315BA2
secondary
#BEA171
accent
#A74BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #315BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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