#313DAB#313DAB

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

Color values

HEX#313DAB
RGBrgb(49, 61, 171)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 67%)
CMYKcmyk(71.3%, 64.3%, 0%, 32.9%)
CIE-LABlab(31.65, 32.88, -60.27)
CIE-LCHlch(31.65, 68.66, 298.62°)
OKLaboklab(42.39% 0.0054 -0.1741)
OKLCHoklch(42.39% 0.174 271.8)
XYZxyz(10.2836, 6.9297, 39.3158)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DAB #AB9F31
analogous
#317AAB #313DAB #6231AB
triadic
#313DAB #AB313D #3DAB31
tetradic
#313DAB #AB317A #AB9F31 #31AB62
square
#313DAB #AB317A #AB9F31 #31AB62
split-complementary
#313DAB #AB6231 #7AAB31
monochromatic
#161B4C #232C7B #313DAB #4D5ACC #7D86DA

Accessibility & contrast

On white

8.80
#313DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DAB
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DAB#FFFFFF#000000##FFFFFF
##313DAB1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313dab;
/* rgb */ color: rgb(49, 61, 171);
/* oklch */ color: oklch(42.4% 0.174 271.8);
Tailwind
colors: {
  custom: {
    50: '#7a72c5',
    500: '#313dab',
    950: '#000000',
  },
}
SCSS
$custom: #313dab;
$custom-light: #7a72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#313dab",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 234.098,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42392,
    "c": 0.17415,
    "h": 271.8
  },
  "luminance": 0.06931
}

Semantic roles & 50–950 ramp

primary
#313DAB
secondary
#C2BB75
accent
#D049DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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