#313BAF#313BAF

#313BAF is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.182 H 272.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#313BAF
RGBrgb(49, 59, 175)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 69%)
CMYKcmyk(72%, 66.3%, 0%, 31.4%)
CIE-LABlab(31.52, 35.58, -62.87)
CIE-LCHlch(31.52, 72.24, 299.51°)
OKLaboklab(42.41% 0.0065 -0.1817)
OKLCHoklch(42.41% 0.182 272.1)
XYZxyz(10.5658, 6.8750, 41.3193)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BAF #AFA531
analogous
#317AAF #313BAF #6631AF
triadic
#313BAF #AF313B #3BAF31
tetradic
#313BAF #AF317A #AFA531 #31AF66
square
#313BAF #AF317A #AFA531 #31AF66
split-complementary
#313BAF #AF6631 #7AAF31
monochromatic
#161B4F #242B7F #313BAF #4F59CE #7F86DB

Accessibility & contrast

On white

8.84
#313BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#313BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BAF
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BAF#FFFFFF#000000##FFFFFF
##313BAF1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313baf;
/* rgb */ color: rgb(49, 59, 175);
/* oklch */ color: oklch(42.4% 0.182 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b71c8',
    500: '#313baf',
    950: '#000000',
  },
}
SCSS
$custom: #313baf;
$custom-light: #7b71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#313baf",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 235.238,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4241,
    "c": 0.18181,
    "h": 272.1
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#313BAF
secondary
#C4BE78
accent
#D448E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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