#315CB3#315CB3

#315CB3 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.2% C 0.147 H 262.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#315CB3
RGBrgb(49, 92, 179)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 73%, 70%)
CMYKcmyk(72.6%, 48.6%, 0%, 29.8%)
CIE-LABlab(40.51, 15.54, -50.63)
CIE-LCHlch(40.51, 52.96, 287.06°)
OKLaboklab(49.24% -0.019 -0.1453)
OKLCHoklch(49.24% 0.147 262.5)
XYZxyz(13.2276, 11.5605, 44.1734)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB3 #B38831
analogous
#319DB3 #315CB3 #4731B3
triadic
#315CB3 #B3315C #5CB331
tetradic
#315CB3 #B3319D #B38831 #31B347
square
#315CB3 #B3319D #B38831 #31B347
split-complementary
#315CB3 #B34731 #9DB331
monochromatic
#172B53 #244383 #315CB3 #527BD0 #82A0DD

Accessibility & contrast

On white

6.34
#315CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#315CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CB3
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB3#FFFFFF#000000##FFFFFF
##315CB31.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#025AB1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315cb3;
/* rgb */ color: rgb(49, 92, 179);
/* oklch */ color: oklch(49.2% 0.147 262.5);
Tailwind
colors: {
  custom: {
    50: '#7a89ca',
    500: '#315cb3',
    950: '#000000',
  },
}
SCSS
$custom: #315cb3;
$custom-light: #7a89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb3",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 220.154,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49238,
    "c": 0.14654,
    "h": 262.5
  },
  "luminance": 0.11562
}

Semantic roles & 50–950 ramp

primary
#315CB3
secondary
#C6AD7A
accent
#AE48E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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