#313FAF#313FAF

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

Color values

HEX#313FAF
RGBrgb(49, 63, 175)
HSLhsl(233, 56%, 44%)
HSVhsv(233, 72%, 69%)
CMYKcmyk(72%, 64%, 0%, 31.4%)
CIE-LABlab(32.48, 33.04, -61.29)
CIE-LCHlch(32.48, 69.62, 298.33°)
OKLaboklab(43.11% 0.0038 -0.177)
OKLCHoklch(43.11% 0.177 271.2)
XYZxyz(10.7794, 7.3020, 41.3905)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FAF #AFA131
analogous
#317EAF #313FAF #6231AF
triadic
#313FAF #AF313F #3FAF31
tetradic
#313FAF #AF317E #AFA131 #31AF62
square
#313FAF #AF317E #AFA131 #31AF62
split-complementary
#313FAF #AF6231 #7EAF31
monochromatic
#161D4F #242E7F #313FAF #4F5DCE #7F89DB

Accessibility & contrast

On white

8.53
#313FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#313FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FAF
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FAF#FFFFFF#000000##FFFFFF
##313FAF1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313faf;
/* rgb */ color: rgb(49, 63, 175);
/* oklch */ color: oklch(43.1% 0.177 271.2);
Tailwind
colors: {
  custom: {
    50: '#7b74c8',
    500: '#313faf',
    950: '#000000',
  },
}
SCSS
$custom: #313faf;
$custom-light: #7b74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#313faf",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 233.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43115,
    "c": 0.17708,
    "h": 271.2
  },
  "luminance": 0.07303
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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