#315EC2#315EC2

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

Color values

HEX#315EC2
RGBrgb(49, 94, 194)
HSLhsl(221, 60%, 48%)
HSVhsv(221, 75%, 76%)
CMYKcmyk(74.7%, 51.5%, 0%, 23.9%)
CIE-LABlab(42.08, 19.88, -56.85)
CIE-LCHlch(42.08, 60.23, 289.27°)
OKLaboklab(50.76% -0.0188 -0.1636)
OKLCHoklch(50.76% 0.165 263.4)
XYZxyz(15.0035, 12.5518, 52.6605)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EC2 #C29531
analogous
#31A7C2 #315EC2 #4C31C2
triadic
#315EC2 #C2315E #5EC231
tetradic
#315EC2 #C231A7 #C29531 #31C24C
square
#315EC2 #C231A7 #C29531 #31C24C
split-complementary
#315EC2 #C24C31 #A7C231
monochromatic
#182F60 #254691 #315EC2 #5B81D6 #8CA6E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##315EC2#FFFFFF#000000##FFFFFF
##315EC21.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)
#1D6AC6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315ec2;
/* rgb */ color: rgb(49, 94, 194);
/* oklch */ color: oklch(50.8% 0.165 263.4);
Tailwind
colors: {
  custom: {
    50: '#7d8bd5',
    500: '#315ec2',
    950: '#000000',
  },
}
SCSS
$custom: #315ec2;
$custom-light: #7d8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#315ec2",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 221.379,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50761,
    "c": 0.16466,
    "h": 263.4
  },
  "luminance": 0.12553
}

Semantic roles & 50–950 ramp

primary
#315EC2
secondary
#CCB583
accent
#B245E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #315EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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