#315CB2#315CB2

#315CB2 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.145 H 262.4°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#315CB2
RGBrgb(49, 92, 178)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 72%, 70%)
CMYKcmyk(72.5%, 48.3%, 0%, 30.2%)
CIE-LABlab(40.44, 15.16, -50.15)
CIE-LCHlch(40.44, 52.39, 286.82°)
OKLaboklab(49.17% -0.0192 -0.1439)
OKLCHoklch(49.17% 0.145 262.4)
XYZxyz(13.1268, 11.5202, 43.6427)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CB2 #B28731
analogous
#319DB2 #315CB2 #4731B2
triadic
#315CB2 #B2315C #5CB231
tetradic
#315CB2 #B2319D #B28731 #31B247
square
#315CB2 #B2319D #B28731 #31B247
split-complementary
#315CB2 #B24731 #9DB231
monochromatic
#172A52 #244382 #315CB2 #517BCF #819FDC

Accessibility & contrast

On white

6.36
#315CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#315CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CB2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CB2#FFFFFF#000000##FFFFFF
##315CB21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#065AB0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315cb2;
/* rgb */ color: rgb(49, 92, 178);
/* oklch */ color: oklch(49.2% 0.145 262.4);
Tailwind
colors: {
  custom: {
    50: '#7a89ca',
    500: '#315cb2',
    950: '#000000',
  },
}
SCSS
$custom: #315cb2;
$custom-light: #7a89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#315cb2",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 220,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49167,
    "c": 0.14516,
    "h": 262.4
  },
  "luminance": 0.11522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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