#315DBC#315DBC

#315DBC is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.1% C 0.158 H 263.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#315DBC
RGBrgb(49, 93, 188)
HSLhsl(221, 59%, 46%)
HSVhsv(221, 74%, 74%)
CMYKcmyk(73.9%, 50.5%, 0%, 26.3%)
CIE-LABlab(41.39, 18.27, -54.47)
CIE-LCHlch(41.39, 57.46, 288.54°)
OKLaboklab(50.11% -0.0187 -0.1566)
OKLCHoklch(50.11% 0.158 263.2)
XYZxyz(14.2548, 12.1110, 49.1536)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DBC #BC9031
analogous
#31A3BC #315DBC #4B31BC
triadic
#315DBC #BC315D #5DBC31
tetradic
#315DBC #BC31A3 #BC9031 #31BC4B
square
#315DBC #BC31A3 #BC9031 #31BC4B
split-complementary
#315DBC #BC4B31 #A3BC31
monochromatic
#182D5B #24458B #315DBC #577ED3 #88A3E0

Accessibility & contrast

On white

6.14
#315DBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#315DBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DBC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DBC#FFFFFF#000000##FFFFFF
##315DBC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #315dbc;
/* rgb */ color: rgb(49, 93, 188);
/* oklch */ color: oklch(50.1% 0.158 263.2);
Tailwind
colors: {
  custom: {
    50: '#7c8ad1',
    500: '#315dbc',
    950: '#000000',
  },
}
SCSS
$custom: #315dbc;
$custom-light: #7c8ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#315dbc",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 188
  },
  "hsl": {
    "h": 221.007,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50105,
    "c": 0.15771,
    "h": 263.2
  },
  "luminance": 0.12113
}

Semantic roles & 50–950 ramp

primary
#315DBC
secondary
#CAB27F
accent
#B146E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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