#315DB2#315DB2

#315DB2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.144 H 262.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#315DB2
RGBrgb(49, 93, 178)
HSLhsl(220, 57%, 45%)
HSVhsv(220, 72%, 70%)
CMYKcmyk(72.5%, 47.8%, 0%, 30.2%)
CIE-LABlab(40.73, 14.51, -49.69)
CIE-LCHlch(40.73, 51.77, 286.28°)
OKLaboklab(49.38% -0.0201 -0.1425)
OKLCHoklch(49.38% 0.144 262)
XYZxyz(13.2140, 11.6946, 43.6717)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315DB2 #B28631
analogous
#319EB2 #315DB2 #4631B2
triadic
#315DB2 #B2315D #5DB231
tetradic
#315DB2 #B2319E #B28631 #31B246
square
#315DB2 #B2319E #B28631 #31B246
split-complementary
#315DB2 #B24631 #9EB231
monochromatic
#172B52 #244482 #315DB2 #517CCF #81A0DC

Accessibility & contrast

On white

6.29
#315DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#315DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315DB2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315DB2#FFFFFF#000000##FFFFFF
##315DB21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#0D5AB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #315db2;
/* rgb */ color: rgb(49, 93, 178);
/* oklch */ color: oklch(49.4% 0.144 262.0);
Tailwind
colors: {
  custom: {
    50: '#7a8ac9',
    500: '#315db2',
    950: '#000000',
  },
}
SCSS
$custom: #315db2;
$custom-light: #7a8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#315db2",
  "rgb": {
    "r": 49,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 219.535,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49384,
    "c": 0.14393,
    "h": 262
  },
  "luminance": 0.11696
}

Semantic roles & 50–950 ramp

primary
#315DB2
secondary
#C5AB79
accent
#AC48E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #315DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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