#313BA0#313BA0

#313BA0 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.162 H 272.6°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#313BA0
RGBrgb(49, 59, 160)
HSLhsl(235, 53%, 41%)
HSVhsv(235, 69%, 63%)
CMYKcmyk(69.4%, 63.1%, 0%, 37.3%)
CIE-LABlab(30.20, 30.21, -56.01)
CIE-LCHlch(30.20, 63.64, 298.34°)
OKLaboklab(41.04% 0.0075 -0.1616)
OKLCHoklch(41.04% 0.162 272.6)
XYZxyz(9.1736, 6.3181, 33.9870)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA0 #A09631
analogous
#3172A0 #313BA0 #5E31A0
triadic
#313BA0 #A0313B #3BA031
tetradic
#313BA0 #A03172 #A09631 #31A05E
square
#313BA0 #A03172 #A09631 #31A05E
split-complementary
#313BA0 #A05E31 #72A031
monochromatic
#141842 #232A71 #313BA0 #4753C7 #767FD5

Accessibility & contrast

On white

9.28
#313BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA0
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA0#FFFFFF#000000##FFFFFF
##313BA01.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313ba0;
/* rgb */ color: rgb(49, 59, 160);
/* oklch */ color: oklch(41.0% 0.162 272.6);
Tailwind
colors: {
  custom: {
    50: '#7871bd',
    500: '#313ba0',
    950: '#000000',
  },
}
SCSS
$custom: #313ba0;
$custom-light: #7871bd;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba0",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 160
  },
  "hsl": {
    "h": 234.595,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41036,
    "c": 0.16177,
    "h": 272.6
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#313BA0
secondary
#BDB670
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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