#315ABB#315ABB

#315ABB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.160 H 264.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#315ABB
RGBrgb(49, 90, 187)
HSLhsl(222, 58%, 46%)
HSVhsv(222, 74%, 73%)
CMYKcmyk(73.8%, 51.9%, 0%, 26.7%)
CIE-LABlab(40.49, 19.85, -55.34)
CIE-LCHlch(40.49, 58.79, 289.73°)
OKLaboklab(49.4% -0.0163 -0.1592)
OKLCHoklch(49.4% 0.16 264.1)
XYZxyz(13.8893, 11.5516, 48.5018)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315ABB #BB9231
analogous
#319FBB #315ABB #4D31BB
triadic
#315ABB #BB315A #5ABB31
tetradic
#315ABB #BB319F #BB9231 #31BB4D
square
#315ABB #BB319F #BB9231 #31BB4D
split-complementary
#315ABB #BB4D31 #9FBB31
monochromatic
#182B5A #24438B #315ABB #567BD3 #87A1E0

Accessibility & contrast

On white

6.34
#315ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#315ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315ABB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315ABB#FFFFFF#000000##FFFFFF
##315ABB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BE
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315abb;
/* rgb */ color: rgb(49, 90, 187);
/* oklch */ color: oklch(49.4% 0.160 264.1);
Tailwind
colors: {
  custom: {
    50: '#7c88d0',
    500: '#315abb',
    950: '#000000',
  },
}
SCSS
$custom: #315abb;
$custom-light: #7c88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#315abb",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 222.174,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.494,
    "c": 0.16004,
    "h": 264.1
  },
  "luminance": 0.11553
}

Semantic roles & 50–950 ramp

primary
#315ABB
secondary
#C9B37F
accent
#B346E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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