#313FB4#313FB4

#313FB4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.184 H 271.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#313FB4
RGBrgb(49, 63, 180)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(72.8%, 65%, 0%, 29.4%)
CIE-LABlab(32.92, 34.83, -63.54)
CIE-LCHlch(32.92, 72.46, 298.73°)
OKLaboklab(43.57% 0.0035 -0.1836)
OKLCHoklch(43.57% 0.184 271.1)
XYZxyz(11.2796, 7.5021, 44.0248)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FB4 #B4A631
analogous
#3180B4 #313FB4 #6531B4
triadic
#313FB4 #B4313F #3FB431
tetradic
#313FB4 #B43180 #B4A631 #31B465
square
#313FB4 #B43180 #B4A631 #31B465
split-complementary
#313FB4 #B46531 #80B431
monochromatic
#171D54 #242E84 #313FB4 #5260D0 #828CDD

Accessibility & contrast

On white

8.40
#313FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#313FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FB4
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FB4#FFFFFF#000000##FFFFFF
##313FB41.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313fb4;
/* rgb */ color: rgb(49, 63, 180);
/* oklch */ color: oklch(43.6% 0.184 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c74cb',
    500: '#313fb4',
    950: '#000000',
  },
}
SCSS
$custom: #313fb4;
$custom-light: #7c74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#313fb4",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 233.588,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43572,
    "c": 0.18367,
    "h": 271.1
  },
  "luminance": 0.07503
}

Semantic roles & 50–950 ramp

primary
#313FB4
secondary
#C6BE7B
accent
#D047E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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