#313BAA#313BAA

#313BAA is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.175 H 272.3°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#313BAA
RGBrgb(49, 59, 170)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 67%)
CMYKcmyk(71.2%, 65.3%, 0%, 33.3%)
CIE-LABlab(31.07, 33.80, -60.61)
CIE-LCHlch(31.07, 69.40, 299.15°)
OKLaboklab(41.94% 0.0069 -0.1751)
OKLCHoklch(41.94% 0.175 272.3)
XYZxyz(10.0838, 6.6822, 38.7808)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BAA #AAA031
analogous
#3178AA #313BAA #6331AA
triadic
#313BAA #AA313B #3BAA31
tetradic
#313BAA #AA3178 #AAA031 #31AA63
square
#313BAA #AA3178 #AAA031 #31AA63
split-complementary
#313BAA #AA6331 #78AA31
monochromatic
#161A4B #232B7A #313BAA #4D57CC #7C84D9

Accessibility & contrast

On white

8.99
#313BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313BAA
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BAA#FFFFFF#000000##FFFFFF
##313BAA1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313baa;
/* rgb */ color: rgb(49, 59, 170);
/* oklch */ color: oklch(41.9% 0.175 272.3);
Tailwind
colors: {
  custom: {
    50: '#7a71c4',
    500: '#313baa',
    950: '#000000',
  },
}
SCSS
$custom: #313baa;
$custom-light: #7a71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313baa",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 170
  },
  "hsl": {
    "h": 235.041,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41944,
    "c": 0.17522,
    "h": 272.3
  },
  "luminance": 0.06683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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