#315CCA#315CCA

#315CCA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.0% C 0.178 H 264.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#315CCA
RGBrgb(49, 92, 202)
HSLhsl(223, 61%, 49%)
HSVhsv(223, 76%, 79%)
CMYKcmyk(75.7%, 54.5%, 0%, 20.8%)
CIE-LABlab(42.11, 24.17, -61.44)
CIE-LCHlch(42.11, 66.02, 291.48°)
OKLaboklab(50.96% -0.0165 -0.1771)
OKLCHoklch(50.96% 0.178 264.7)
XYZxyz(15.7507, 12.5698, 57.4618)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315CCA #CA9F31
analogous
#31A9CA #315CCA #5231CA
triadic
#315CCA #CA315C #5CCA31
tetradic
#315CCA #CA31A9 #CA9F31 #31CA52
square
#315CCA #CA31A9 #CA9F31 #31CA52
split-complementary
#315CCA #CA5231 #A9CA31
monochromatic
#192F67 #254699 #315CCA #6082D8 #91A8E4

Accessibility & contrast

On white

5.98
#315CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#315CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315CCA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315CCA#FFFFFF#000000##FFFFFF
##315CCA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315cca;
/* rgb */ color: rgb(49, 92, 202);
/* oklch */ color: oklch(51.0% 0.178 264.7);
Tailwind
colors: {
  custom: {
    50: '#7f89db',
    500: '#315cca',
    950: '#000000',
  },
}
SCSS
$custom: #315cca;
$custom-light: #7f89db;
$custom-dark: #000000;
JSON
{
  "hex": "#315cca",
  "rgb": {
    "r": 49,
    "g": 92,
    "b": 202
  },
  "hsl": {
    "h": 223.137,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50962,
    "c": 0.17787,
    "h": 264.7
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

primary
#315CCA
secondary
#CFBB88
accent
#B744E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #315CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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