#313FB0#313FB0

#313FB0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.178 H 271.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#313FB0
RGBrgb(49, 63, 176)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 72%, 69%)
CMYKcmyk(72.2%, 64.2%, 0%, 31%)
CIE-LABlab(32.57, 33.40, -61.74)
CIE-LCHlch(32.57, 70.19, 298.41°)
OKLaboklab(43.21% 0.0038 -0.1784)
OKLCHoklch(43.21% 0.178 271.2)
XYZxyz(10.8779, 7.3415, 41.9096)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FB0 #B0A231
analogous
#317FB0 #313FB0 #6331B0
triadic
#313FB0 #B0313F #3FB031
tetradic
#313FB0 #B0317F #B0A231 #31B063
square
#313FB0 #B0317F #B0A231 #31B063
split-complementary
#313FB0 #B06331 #7FB031
monochromatic
#161D50 #242E80 #313FB0 #505ECE #808ADC

Accessibility & contrast

On white

8.51
#313FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#313FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FB0
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FB0#FFFFFF#000000##FFFFFF
##313FB01.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313fb0;
/* rgb */ color: rgb(49, 63, 176);
/* oklch */ color: oklch(43.2% 0.178 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b74c9',
    500: '#313fb0',
    950: '#000000',
  },
}
SCSS
$custom: #313fb0;
$custom-light: #7b74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313fb0",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 176
  },
  "hsl": {
    "h": 233.386,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43206,
    "c": 0.1784,
    "h": 271.2
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#313FB0
secondary
#C5BC78
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313FB0

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

Preview Lab → · Contrast checker → · Palette generator →

#313FB0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva