#315AB9#315AB9

#315AB9 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.157 H 264.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#315AB9
RGBrgb(49, 90, 185)
HSLhsl(222, 58%, 46%)
HSVhsv(222, 74%, 73%)
CMYKcmyk(73.5%, 51.4%, 0%, 27.5%)
CIE-LABlab(40.36, 19.10, -54.39)
CIE-LCHlch(40.36, 57.65, 289.35°)
OKLaboklab(49.25% -0.0166 -0.1564)
OKLCHoklch(49.25% 0.157 264)
XYZxyz(13.6766, 11.4666, 47.3820)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315AB9 #B99031
analogous
#319EB9 #315AB9 #4C31B9
triadic
#315AB9 #B9315A #5AB931
tetradic
#315AB9 #B9319E #B99031 #31B94C
square
#315AB9 #B9319E #B99031 #31B94C
split-complementary
#315AB9 #B94C31 #9EB931
monochromatic
#172B58 #244289 #315AB9 #557BD2 #86A0DF

Accessibility & contrast

On white

6.38
#315AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#315AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #315AB9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315AB9#FFFFFF#000000##FFFFFF
##315AB91.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BC
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #315ab9;
/* rgb */ color: rgb(49, 90, 185);
/* oklch */ color: oklch(49.3% 0.157 264.0);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#315ab9',
    950: '#000000',
  },
}
SCSS
$custom: #315ab9;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#315ab9",
  "rgb": {
    "r": 49,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 221.912,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4925,
    "c": 0.1573,
    "h": 264
  },
  "luminance": 0.11468
}

Semantic roles & 50–950 ramp

primary
#315AB9
secondary
#C8B27D
accent
#B346E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #315AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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