#313BAB#313BAB

#313BAB is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.177 H 272.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#313BAB
RGBrgb(49, 59, 171)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 67%)
CMYKcmyk(71.3%, 65.5%, 0%, 32.9%)
CIE-LABlab(31.16, 34.16, -61.06)
CIE-LCHlch(31.16, 69.97, 299.22°)
OKLaboklab(42.04% 0.0068 -0.1764)
OKLCHoklch(42.04% 0.177 272.2)
XYZxyz(10.1788, 6.7202, 39.2809)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BAB #ABA131
analogous
#3178AB #313BAB #6431AB
triadic
#313BAB #AB313B #3BAB31
tetradic
#313BAB #AB3178 #ABA131 #31AB64
square
#313BAB #AB3178 #ABA131 #31AB64
split-complementary
#313BAB #AB6431 #78AB31
monochromatic
#161A4C #232B7B #313BAB #4D58CC #7D84DA

Accessibility & contrast

On white

8.96
#313BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#313BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BAB
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BAB#FFFFFF#000000##FFFFFF
##313BAB1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313bab;
/* rgb */ color: rgb(49, 59, 171);
/* oklch */ color: oklch(42.0% 0.177 272.2);
Tailwind
colors: {
  custom: {
    50: '#7a71c5',
    500: '#313bab',
    950: '#000000',
  },
}
SCSS
$custom: #313bab;
$custom-light: #7a71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#313bab",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 171
  },
  "hsl": {
    "h": 235.082,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.17654,
    "h": 272.2
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#313BAB
secondary
#C2BC75
accent
#D249DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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