#315DB3#315DB3

#315DB3 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.145 H 262.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#315DB3
RGBrgb(49, 93, 179)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 70%)
CMYKcmyk(72.6%, 48%, 0%, 29.8%)
CIE-LABlab(40.79, 14.89, -50.17)
CIE-LCHlch(40.79, 52.34, 286.53°)
OKLaboklab(49.46% -0.0199 -0.1439)
OKLCHoklch(49.46% 0.145 262.1)
XYZxyz(13.3148, 11.7349, 44.2024)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB3 #B38731
analogous
#319EB3 #315DB3 #4631B3
triadic
#315DB3 #B3315D #5DB331
tetradic
#315DB3 #B3319E #B38731 #31B346
square
#315DB3 #B3319E #B38731 #31B346
split-complementary
#315DB3 #B34631 #9EB331
monochromatic
#172B53 #244483 #315DB3 #527CD0 #82A1DD

Accessibility & contrast

On white

6.27
#315DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#315DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB3
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB3#FFFFFF#000000##FFFFFF
##315DB31.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B6
Deuteranopia (green-blind)
#095BB1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315db3;
/* rgb */ color: rgb(49, 93, 179);
/* oklch */ color: oklch(49.5% 0.145 262.1);
Tailwind
colors: {
  custom: {
    50: '#7a8aca',
    500: '#315db3',
    950: '#000000',
  },
}
SCSS
$custom: #315db3;
$custom-light: #7a8aca;
$custom-dark: #000000;
JSON
{
  "hex": "#315db3",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 219.692,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49455,
    "c": 0.14531,
    "h": 262.1
  },
  "luminance": 0.11736
}

Semantic roles & 50–950 ramp

primary
#315DB3
secondary
#C6AC7A
accent
#AD48E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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