#313E8F#313E8F

#313E8F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.134 H 272.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#313E8F
RGBrgb(49, 62, 143)
HSLhsl(232, 49%, 38%)
HSVhsv(232, 66%, 56%)
CMYKcmyk(65.7%, 56.6%, 0%, 43.9%)
CIE-LABlab(29.62, 22.01, -46.59)
CIE-LCHlch(29.62, 51.53, 295.28°)
OKLaboklab(40.17% 0.0049 -0.1339)
OKLCHoklch(40.17% 0.134 272.1)
XYZxyz(7.9455, 6.0807, 26.7362)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E8F #8F8231
analogous
#316D8F #313E8F #53318F
triadic
#313E8F #8F313E #3E8F31
tetradic
#313E8F #8F316D #8F8231 #318F53
square
#313E8F #8F316D #8F8231 #318F53
split-complementary
#313E8F #8F5331 #6D8F31
monochromatic
#121634 #212A61 #313E8F #4152BD #6D7BCD

Accessibility & contrast

On white

9.48
#313E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#313E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E8F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E8F#FFFFFF#000000##FFFFFF
##313E8F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313e8f;
/* rgb */ color: rgb(49, 62, 143);
/* oklch */ color: oklch(40.2% 0.134 272.1);
Tailwind
colors: {
  custom: {
    50: '#7473b0',
    500: '#313e8f',
    950: '#000000',
  },
}
SCSS
$custom: #313e8f;
$custom-light: #7473b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313e8f",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 143
  },
  "hsl": {
    "h": 231.702,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40172,
    "c": 0.13398,
    "h": 272.1
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#313E8F
secondary
#B5AA67
accent
#C64FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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