#313FB1#313FB1

#313FB1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.180 H 271.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#313FB1
RGBrgb(49, 63, 177)
HSLhsl(233, 57%, 44%)
HSVhsv(233, 72%, 69%)
CMYKcmyk(72.3%, 64.4%, 0%, 30.6%)
CIE-LABlab(32.66, 33.75, -62.19)
CIE-LCHlch(32.66, 70.76, 298.49°)
OKLaboklab(43.3% 0.0037 -0.1797)
OKLCHoklch(43.3% 0.18 271.2)
XYZxyz(10.9772, 7.3812, 42.4326)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FB1 #B1A331
analogous
#317FB1 #313FB1 #6331B1
triadic
#313FB1 #B1313F #3FB131
tetradic
#313FB1 #B1317F #B1A331 #31B163
square
#313FB1 #B1317F #B1A331 #31B163
split-complementary
#313FB1 #B16331 #7FB131
monochromatic
#161D51 #242E81 #313FB1 #515ECF #808ADC

Accessibility & contrast

On white

8.48
#313FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#313FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FB1
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FB1#FFFFFF#000000##FFFFFF
##313FB11.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313fb1;
/* rgb */ color: rgb(49, 63, 177);
/* oklch */ color: oklch(43.3% 0.180 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b74c9',
    500: '#313fb1',
    950: '#000000',
  },
}
SCSS
$custom: #313fb1;
$custom-light: #7b74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313fb1",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 233.438,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43297,
    "c": 0.17973,
    "h": 271.2
  },
  "luminance": 0.07382
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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