#313F85#313F85

#313F85 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.118 H 271.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#313F85
RGBrgb(49, 63, 133)
HSLhsl(230, 46%, 36%)
HSVhsv(230, 63%, 52%)
CMYKcmyk(63.2%, 52.6%, 0%, 47.8%)
CIE-LABlab(29.16, 17.65, -41.15)
CIE-LCHlch(29.16, 44.77, 293.21°)
OKLaboklab(39.6% 0.0031 -0.1178)
OKLCHoklch(39.6% 0.118 271.5)
XYZxyz(7.2764, 5.9008, 22.9413)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F85 #857731
analogous
#316985 #313F85 #4D3185
triadic
#313F85 #85313F #3F8531
tetradic
#313F85 #853169 #857731 #31854D
square
#313F85 #853169 #857731 #31854D
split-complementary
#313F85 #854D31 #698531
monochromatic
#10152C #212A58 #313F85 #4154B2 #6979C8

Accessibility & contrast

On white

9.63
#313F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#313F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F85
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F85#FFFFFF#000000##FFFFFF
##313F851.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184987
Deuteranopia (green-blind)
#024184
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313f85;
/* rgb */ color: rgb(49, 63, 133);
/* oklch */ color: oklch(39.6% 0.118 271.5);
Tailwind
colors: {
  custom: {
    50: '#7273a9',
    500: '#313f85',
    950: '#000000',
  },
}
SCSS
$custom: #313f85;
$custom-light: #7273a9;
$custom-dark: #000000;
JSON
{
  "hex": "#313f85",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 133
  },
  "hsl": {
    "h": 230,
    "s": 46.154,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39597,
    "c": 0.11789,
    "h": 271.5
  },
  "luminance": 0.05901
}

Semantic roles & 50–950 ramp

primary
#313F85
secondary
#AFA263
accent
#C052D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #313F85

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

Preview Lab → · Contrast checker → · Palette generator →

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