#313BB0#313BB0

#313BB0 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.183 H 272.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#313BB0
RGBrgb(49, 59, 176)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 69%)
CMYKcmyk(72.2%, 66.5%, 0%, 31%)
CIE-LABlab(31.61, 35.94, -63.31)
CIE-LCHlch(31.61, 72.80, 299.58°)
OKLaboklab(42.5% 0.0064 -0.183)
OKLCHoklch(42.5% 0.183 272)
XYZxyz(10.6644, 6.9144, 41.8385)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB0 #B0A631
analogous
#317BB0 #313BB0 #6731B0
triadic
#313BB0 #B0313B #3BB031
tetradic
#313BB0 #B0317B #B0A631 #31B067
square
#313BB0 #B0317B #B0A631 #31B067
split-complementary
#313BB0 #B06731 #7BB031
monochromatic
#161B50 #242B80 #313BB0 #505ACE #8087DC

Accessibility & contrast

On white

8.81
#313BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313BB0
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BB0#FFFFFF#000000##FFFFFF
##313BB01.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313bb0;
/* rgb */ color: rgb(49, 59, 176);
/* oklch */ color: oklch(42.5% 0.183 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b71c9',
    500: '#313bb0',
    950: '#000000',
  },
}
SCSS
$custom: #313bb0;
$custom-light: #7b71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb0",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 176
  },
  "hsl": {
    "h": 235.276,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42504,
    "c": 0.18311,
    "h": 272
  },
  "luminance": 0.06915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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