#315ED4#315ED4

#315ED4 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.1% C 0.189 H 264.7°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#315ED4
RGBrgb(49, 94, 212)
HSLhsl(223, 65%, 51%)
HSVhsv(223, 77%, 83%)
CMYKcmyk(76.9%, 55.7%, 0%, 16.9%)
CIE-LABlab(43.37, 26.61, -65.13)
CIE-LCHlch(43.37, 70.35, 292.22°)
OKLaboklab(52.15% -0.0173 -0.1879)
OKLCHoklch(52.15% 0.189 264.7)
XYZxyz(17.1488, 13.4099, 63.9592)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315ED4 #D4A731
analogous
#31AFD4 #315ED4 #5531D4
triadic
#315ED4 #D4315E #5ED431
tetradic
#315ED4 #D431AF #D4A731 #31D455
square
#315ED4 #D431AF #D4A731 #31D455
split-complementary
#315ED4 #D45531 #AFD431
monochromatic
#183173 #2347A5 #315ED4 #6486DF #96ADE9

Accessibility & contrast

On white

5.70
#315ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#315ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315ED4
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315ED4#FFFFFF#000000##FFFFFF
##315ED41.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#005FD2
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #315ed4;
/* rgb */ color: rgb(49, 94, 212);
/* oklch */ color: oklch(52.1% 0.189 264.7);
Tailwind
colors: {
  custom: {
    50: '#818be2',
    500: '#315ed4',
    950: '#000000',
  },
}
SCSS
$custom: #315ed4;
$custom-light: #818be2;
$custom-dark: #000000;
JSON
{
  "hex": "#315ed4",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 223.436,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5215,
    "c": 0.18871,
    "h": 264.7
  },
  "luminance": 0.13412
}

Semantic roles & 50–950 ramp

primary
#315ED4
secondary
#D4C18C
accent
#BA3FE8
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B15
muted
#7D7C84

Preview Lab

Preview with #315ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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