#315AB7#315AB7

#315AB7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.155 H 263.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#315AB7
RGBrgb(49, 90, 183)
HSLhsl(222, 58%, 45%)
HSVhsv(222, 73%, 72%)
CMYKcmyk(73.2%, 50.8%, 0%, 28.2%)
CIE-LABlab(40.22, 18.35, -53.45)
CIE-LCHlch(40.22, 56.51, 288.95°)
OKLaboklab(49.1% -0.0168 -0.1536)
OKLCHoklch(49.1% 0.155 263.8)
XYZxyz(13.4670, 11.3827, 46.2779)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AB7 #B78E31
analogous
#319DB7 #315AB7 #4B31B7
triadic
#315AB7 #B7315A #5AB731
tetradic
#315AB7 #B7319D #B78E31 #31B74B
square
#315AB7 #B7319D #B78E31 #31B74B
split-complementary
#315AB7 #B74B31 #9DB731
monochromatic
#172B56 #244287 #315AB7 #547AD1 #84A0DE

Accessibility & contrast

On white

6.41
#315AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#315AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AB7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AB7#FFFFFF#000000##FFFFFF
##315AB71.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ab7;
/* rgb */ color: rgb(49, 90, 183);
/* oklch */ color: oklch(49.1% 0.155 263.8);
Tailwind
colors: {
  custom: {
    50: '#7b88cd',
    500: '#315ab7',
    950: '#000000',
  },
}
SCSS
$custom: #315ab7;
$custom-light: #7b88cd;
$custom-dark: #000000;
JSON
{
  "hex": "#315ab7",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 221.642,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49102,
    "c": 0.15454,
    "h": 263.8
  },
  "luminance": 0.11384
}

Semantic roles & 50–950 ramp

primary
#315AB7
secondary
#C8B17C
accent
#B247E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #315AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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