#313F8F#313F8F

#313F8F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.133 H 271.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#313F8F
RGBrgb(49, 63, 143)
HSLhsl(231, 49%, 38%)
HSVhsv(231, 66%, 56%)
CMYKcmyk(65.7%, 55.9%, 0%, 43.9%)
CIE-LABlab(29.89, 21.33, -46.15)
CIE-LCHlch(29.89, 50.84, 294.81°)
OKLaboklab(40.38% 0.0039 -0.1326)
OKLCHoklch(40.38% 0.133 271.7)
XYZxyz(8.0004, 6.1905, 26.7545)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F8F #8F8131
analogous
#316E8F #313F8F #52318F
triadic
#313F8F #8F313F #3F8F31
tetradic
#313F8F #8F316E #8F8131 #318F52
square
#313F8F #8F316E #8F8131 #318F52
split-complementary
#313F8F #8F5231 #6E8F31
monochromatic
#121734 #212B61 #313F8F #4153BD #6D7CCD

Accessibility & contrast

On white

9.38
#313F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F8F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F8F#FFFFFF#000000##FFFFFF
##313F8F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313f8f;
/* rgb */ color: rgb(49, 63, 143);
/* oklch */ color: oklch(40.4% 0.133 271.7);
Tailwind
colors: {
  custom: {
    50: '#7473b0',
    500: '#313f8f',
    950: '#000000',
  },
}
SCSS
$custom: #313f8f;
$custom-light: #7473b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313f8f",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 231.064,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40376,
    "c": 0.13264,
    "h": 271.7
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#313F8F
secondary
#B5A967
accent
#C44FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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