#313B8C#313B8C

#313B8C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.134 H 273.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#313B8C
RGBrgb(49, 59, 140)
HSLhsl(233, 48%, 37%)
HSVhsv(233, 65%, 55%)
CMYKcmyk(65%, 57.9%, 0%, 45.1%)
CIE-LABlab(28.57, 22.93, -46.43)
CIE-LCHlch(28.57, 51.78, 296.28°)
OKLaboklab(39.32% 0.0077 -0.1335)
OKLCHoklch(39.32% 0.134 273.3)
XYZxyz(7.5626, 5.6737, 25.5025)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B8C #8C8231
analogous
#31688C #313B8C #55318C
triadic
#313B8C #8C313B #3B8C31
tetradic
#313B8C #8C3168 #8C8231 #318C55
square
#313B8C #8C3168 #8C8231 #318C55
split-complementary
#313B8C #8C5531 #688C31
monochromatic
#111531 #21285F #313B8C #414EB9 #6C76CC

Accessibility & contrast

On white

9.84
#313B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B8C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B8C#FFFFFF#000000##FFFFFF
##313B8C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313b8c;
/* rgb */ color: rgb(49, 59, 140);
/* oklch */ color: oklch(39.3% 0.134 273.3);
Tailwind
colors: {
  custom: {
    50: '#7470ae',
    500: '#313b8c',
    950: '#000000',
  },
}
SCSS
$custom: #313b8c;
$custom-light: #7470ae;
$custom-dark: #000000;
JSON
{
  "hex": "#313b8c",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 140
  },
  "hsl": {
    "h": 233.407,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39321,
    "c": 0.13367,
    "h": 273.3
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#313B8C
secondary
#B3AB66
accent
#C950D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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