#313CAA#313CAA

#313CAA is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.174 H 272.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#313CAA
RGBrgb(49, 60, 170)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 67%)
CMYKcmyk(71.2%, 64.7%, 0%, 33.3%)
CIE-LABlab(31.31, 33.16, -60.21)
CIE-LCHlch(31.31, 68.74, 298.84°)
OKLaboklab(42.12% 0.0062 -0.1739)
OKLCHoklch(42.12% 0.174 272)
XYZxyz(10.1357, 6.7860, 38.7981)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CAA #AA9F31
analogous
#3179AA #313CAA #6231AA
triadic
#313CAA #AA313C #3CAA31
tetradic
#313CAA #AA3179 #AA9F31 #31AA62
square
#313CAA #AA3179 #AA9F31 #31AA62
split-complementary
#313CAA #AA6231 #79AA31
monochromatic
#161A4B #232B7A #313CAA #4D58CC #7C85D9

Accessibility & contrast

On white

8.91
#313CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#313CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CAA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CAA#FFFFFF#000000##FFFFFF
##313CAA1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313caa;
/* rgb */ color: rgb(49, 60, 170);
/* oklch */ color: oklch(42.1% 0.174 272.0);
Tailwind
colors: {
  custom: {
    50: '#7a72c4',
    500: '#313caa',
    950: '#000000',
  },
}
SCSS
$custom: #313caa;
$custom-light: #7a72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313caa",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 170
  },
  "hsl": {
    "h": 234.545,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42122,
    "c": 0.17403,
    "h": 272
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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