#313B8E#313B8E

#313B8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.137 H 273.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#313B8E
RGBrgb(49, 59, 142)
HSLhsl(234, 49%, 37%)
HSVhsv(234, 65%, 56%)
CMYKcmyk(65.5%, 58.5%, 0%, 44.3%)
CIE-LABlab(28.73, 23.66, -47.41)
CIE-LCHlch(28.73, 52.99, 296.52°)
OKLaboklab(39.49% 0.0077 -0.1363)
OKLCHoklch(39.49% 0.137 273.2)
XYZxyz(7.7115, 5.7332, 26.2862)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B8E #8E8431
analogous
#316A8E #313B8E #55318E
triadic
#313B8E #8E313B #3B8E31
tetradic
#313B8E #8E316A #8E8431 #318E55
square
#313B8E #8E316A #8E8431 #318E55
split-complementary
#313B8E #8E5531 #6A8E31
monochromatic
#121533 #212861 #313B8E #414EBB #6D77CD

Accessibility & contrast

On white

9.78
#313B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B8E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B8E#FFFFFF#000000##FFFFFF
##313B8E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313b8e;
/* rgb */ color: rgb(49, 59, 142);
/* oklch */ color: oklch(39.5% 0.137 273.2);
Tailwind
colors: {
  custom: {
    50: '#7470b0',
    500: '#313b8e',
    950: '#000000',
  },
}
SCSS
$custom: #313b8e;
$custom-light: #7470b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313b8e",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 142
  },
  "hsl": {
    "h": 233.548,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39486,
    "c": 0.13656,
    "h": 273.2
  },
  "luminance": 0.05734
}

Semantic roles & 50–950 ramp

primary
#313B8E
secondary
#B4AC67
accent
#CA50D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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