#313CBB#313CBB

#313CBB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.7% C 0.196 H 271.4°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#313CBB
RGBrgb(49, 60, 187)
HSLhsl(235, 58%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(73.8%, 67.9%, 0%, 26.7%)
CIE-LABlab(32.86, 39.19, -67.79)
CIE-LCHlch(32.86, 78.30, 300.03°)
OKLaboklab(43.72% 0.0048 -0.1961)
OKLCHoklch(43.72% 0.196 271.4)
XYZxyz(11.8491, 7.4713, 47.8217)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CBB #BBB031
analogous
#3181BB #313CBB #6B31BB
triadic
#313CBB #BB313C #3CBB31
tetradic
#313CBB #BB3181 #BBB031 #31BB6B
square
#313CBB #BB3181 #BBB031 #31BB6B
split-complementary
#313CBB #BB6B31 #81BB31
monochromatic
#181D5A #242C8B #313CBB #5660D3 #878EE0

Accessibility & contrast

On white

8.42
#313CBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#313CBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CBB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CBB#FFFFFF#000000##FFFFFF
##313CBB1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313cbb;
/* rgb */ color: rgb(49, 60, 187);
/* oklch */ color: oklch(43.7% 0.196 271.4);
Tailwind
colors: {
  custom: {
    50: '#7e72d1',
    500: '#313cbb',
    950: '#000000',
  },
}
SCSS
$custom: #313cbb;
$custom-light: #7e72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#313cbb",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 235.217,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43718,
    "c": 0.19615,
    "h": 271.4
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#313CBB
secondary
#C9C37F
accent
#D546E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #313CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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