#315EC3#315EC3

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

Color values

HEX#315EC3
RGBrgb(49, 94, 195)
HSLhsl(222, 60%, 48%)
HSVhsv(222, 75%, 76%)
CMYKcmyk(74.9%, 51.8%, 0%, 23.5%)
CIE-LABlab(42.15, 20.25, -57.32)
CIE-LCHlch(42.15, 60.79, 289.46°)
OKLaboklab(50.84% -0.0187 -0.165)
OKLCHoklch(50.84% 0.166 263.5)
XYZxyz(15.1161, 12.5968, 53.2539)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315EC3 #C39631
analogous
#31A7C3 #315EC3 #4D31C3
triadic
#315EC3 #C3315E #5EC331
tetradic
#315EC3 #C331A7 #C39631 #31C34D
square
#315EC3 #C331A7 #C39631 #31C34D
split-complementary
#315EC3 #C34D31 #A7C331
monochromatic
#182F61 #254692 #315EC3 #5B81D6 #8CA7E2

Accessibility & contrast

On white

5.97
#315EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#315EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315EC3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315EC3#FFFFFF#000000##FFFFFF
##315EC31.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6BC7
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #315ec3;
/* rgb */ color: rgb(49, 94, 195);
/* oklch */ color: oklch(50.8% 0.166 263.5);
Tailwind
colors: {
  custom: {
    50: '#7d8bd6',
    500: '#315ec3',
    950: '#000000',
  },
}
SCSS
$custom: #315ec3;
$custom-light: #7d8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#315ec3",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 195
  },
  "hsl": {
    "h": 221.507,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50836,
    "c": 0.16602,
    "h": 263.5
  },
  "luminance": 0.12599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #315EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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