#313FAE#313FAE

#313FAE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.176 H 271.3°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#313FAE
RGBrgb(49, 63, 174)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 72%, 68%)
CMYKcmyk(71.8%, 63.8%, 0%, 31.8%)
CIE-LABlab(32.40, 32.67, -60.83)
CIE-LCHlch(32.40, 69.05, 298.24°)
OKLaboklab(43.03% 0.0039 -0.1757)
OKLCHoklch(43.03% 0.176 271.3)
XYZxyz(10.6815, 7.2629, 40.8751)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FAE #AEA031
analogous
#317DAE #313FAE #6131AE
triadic
#313FAE #AE313F #3FAE31
tetradic
#313FAE #AE317D #AEA031 #31AE61
square
#313FAE #AE317D #AEA031 #31AE61
split-complementary
#313FAE #AE6131 #7DAE31
monochromatic
#161C4E #242E7E #313FAE #4F5DCD #7F89DB

Accessibility & contrast

On white

8.56
#313FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#313FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FAE
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FAE#FFFFFF#000000##FFFFFF
##313FAE1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313fae;
/* rgb */ color: rgb(49, 63, 174);
/* oklch */ color: oklch(43.0% 0.176 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b74c7',
    500: '#313fae',
    950: '#000000',
  },
}
SCSS
$custom: #313fae;
$custom-light: #7b74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#313fae",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 174
  },
  "hsl": {
    "h": 233.28,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43025,
    "c": 0.17575,
    "h": 271.3
  },
  "luminance": 0.07264
}

Semantic roles & 50–950 ramp

primary
#313FAE
secondary
#C4BB77
accent
#CE48DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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