#313B8A#313B8A

#313B8A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.131 H 273.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#313B8A
RGBrgb(49, 59, 138)
HSLhsl(233, 48%, 37%)
HSVhsv(233, 64%, 54%)
CMYKcmyk(64.5%, 57.2%, 0%, 45.9%)
CIE-LABlab(28.42, 22.19, -45.44)
CIE-LCHlch(28.42, 50.57, 296.03°)
OKLaboklab(39.16% 0.0076 -0.1305)
OKLCHoklch(39.16% 0.131 273.3)
XYZxyz(7.4165, 5.6153, 24.7328)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B8A #8A8031
analogous
#31688A #313B8A #54318A
triadic
#313B8A #8A313B #3B8A31
tetradic
#313B8A #8A3168 #8A8031 #318A54
square
#313B8A #8A3168 #8A8031 #318A54
split-complementary
#313B8A #8A5431 #688A31
monochromatic
#111430 #21285D #313B8A #414EB7 #6B76CA

Accessibility & contrast

On white

9.89
#313B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B8A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B8A#FFFFFF#000000##FFFFFF
##313B8A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313b8a;
/* rgb */ color: rgb(49, 59, 138);
/* oklch */ color: oklch(39.2% 0.131 273.3);
Tailwind
colors: {
  custom: {
    50: '#7370ad',
    500: '#313b8a',
    950: '#000000',
  },
}
SCSS
$custom: #313b8a;
$custom-light: #7370ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313b8a",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 233.258,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39157,
    "c": 0.13077,
    "h": 273.3
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#313B8A
secondary
#B2A965
accent
#C851D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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