#315FA2#315FA2

#315FA2 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.8% C 0.119 H 257.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#315FA2
RGBrgb(49, 95, 162)
HSLhsl(216, 54%, 41%)
HSVhsv(216, 70%, 64%)
CMYKcmyk(69.8%, 41.4%, 0%, 36.5%)
CIE-LABlab(40.32, 7.22, -40.88)
CIE-LCHlch(40.32, 41.52, 280.02°)
OKLaboklab(48.75% -0.025 -0.1166)
OKLCHoklch(48.75% 0.119 257.9)
XYZxyz(11.8781, 11.4448, 35.7585)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315FA2 #A27431
analogous
#3198A2 #315FA2 #3B31A2
triadic
#315FA2 #A2315F #5FA231
tetradic
#315FA2 #A23198 #A27431 #31A23B
square
#315FA2 #A23198 #A27431 #31A23B
split-complementary
#315FA2 #A23B31 #98A231
monochromatic
#152844 #234373 #315FA2 #487CC8 #779ED6

Accessibility & contrast

On white

6.38
#315FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#315FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315FA2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315FA2#FFFFFF#000000##FFFFFF
##315FA21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#2E5AA1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315fa2;
/* rgb */ color: rgb(49, 95, 162);
/* oklch */ color: oklch(48.8% 0.119 257.9);
Tailwind
colors: {
  custom: {
    50: '#768cbe',
    500: '#315fa2',
    950: '#000000',
  },
}
SCSS
$custom: #315fa2;
$custom-light: #768cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#315fa2",
  "rgb": {
    "r": 49,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 215.575,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48752,
    "c": 0.11925,
    "h": 257.9
  },
  "luminance": 0.11446
}

Semantic roles & 50–950 ramp

primary
#315FA2
secondary
#BE9F71
accent
#A14BDD
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #315FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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