#313BA6#313BA6

#313BA6 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.170 H 272.4°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#313BA6
RGBrgb(49, 59, 166)
HSLhsl(235, 54%, 42%)
HSVhsv(235, 70%, 65%)
CMYKcmyk(70.5%, 64.5%, 0%, 34.9%)
CIE-LABlab(30.72, 32.37, -58.79)
CIE-LCHlch(30.72, 67.11, 298.84°)
OKLaboklab(41.58% 0.0072 -0.1697)
OKLCHoklch(41.58% 0.17 272.4)
XYZxyz(9.7112, 6.5331, 36.8182)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA6 #A69C31
analogous
#3176A6 #313BA6 #6231A6
triadic
#313BA6 #A6313B #3BA631
tetradic
#313BA6 #A63176 #A69C31 #31A662
square
#313BA6 #A63176 #A69C31 #31A662
split-complementary
#313BA6 #A66231 #76A631
monochromatic
#151947 #232A77 #313BA6 #4A55CA #7A82D8

Accessibility & contrast

On white

9.10
#313BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#313BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA6
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA6#FFFFFF#000000##FFFFFF
##313BA61.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ba6;
/* rgb */ color: rgb(49, 59, 166);
/* oklch */ color: oklch(41.6% 0.170 272.4);
Tailwind
colors: {
  custom: {
    50: '#7971c1',
    500: '#313ba6',
    950: '#000000',
  },
}
SCSS
$custom: #313ba6;
$custom-light: #7971c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba6",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 166
  },
  "hsl": {
    "h": 234.872,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.16989,
    "h": 272.4
  },
  "luminance": 0.06534
}

Semantic roles & 50–950 ramp

primary
#313BA6
secondary
#C0B973
accent
#D14ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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