#313D88#313D88

#313D88 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.125 H 272.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#313D88
RGBrgb(49, 61, 136)
HSLhsl(232, 47%, 36%)
HSVhsv(232, 64%, 53%)
CMYKcmyk(64%, 55.1%, 0%, 46.7%)
CIE-LABlab(28.82, 20.11, -43.56)
CIE-LCHlch(28.82, 47.98, 294.78°)
OKLaboklab(39.41% 0.0055 -0.125)
OKLCHoklch(39.41% 0.125 272.5)
XYZxyz(7.3778, 5.7674, 24.0122)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D88 #887C31
analogous
#316988 #313D88 #513188
triadic
#313D88 #88313D #3D8831
tetradic
#313D88 #883169 #887C31 #318851
square
#313D88 #883169 #887C31 #318851
split-complementary
#313D88 #885131 #698831
monochromatic
#11152E #21295B #313D88 #4151B5 #6A77C9

Accessibility & contrast

On white

9.75
#313D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#313D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D88
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D88#FFFFFF#000000##FFFFFF
##313D881.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B488B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313d88;
/* rgb */ color: rgb(49, 61, 136);
/* oklch */ color: oklch(39.4% 0.125 272.5);
Tailwind
colors: {
  custom: {
    50: '#7372ab',
    500: '#313d88',
    950: '#000000',
  },
}
SCSS
$custom: #313d88;
$custom-light: #7372ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313d88",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 136
  },
  "hsl": {
    "h": 231.724,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39408,
    "c": 0.12511,
    "h": 272.5
  },
  "luminance": 0.05768
}

Semantic roles & 50–950 ramp

primary
#313D88
secondary
#B1A664
accent
#C451D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313D88

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

Preview Lab → · Contrast checker → · Palette generator →

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