#313BA5#313BA5

#313BA5 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.169 H 272.5°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#313BA5
RGBrgb(49, 59, 165)
HSLhsl(235, 54%, 42%)
HSVhsv(235, 70%, 65%)
CMYKcmyk(70.3%, 64.2%, 0%, 35.3%)
CIE-LABlab(30.63, 32.01, -58.33)
CIE-LCHlch(30.63, 66.53, 298.76°)
OKLaboklab(41.49% 0.0072 -0.1684)
OKLCHoklch(41.49% 0.169 272.5)
XYZxyz(9.6198, 6.4966, 36.3370)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA5 #A59B31
analogous
#3175A5 #313BA5 #6131A5
triadic
#313BA5 #A5313B #3BA531
tetradic
#313BA5 #A53175 #A59B31 #31A561
square
#313BA5 #A53175 #A59B31 #31A561
split-complementary
#313BA5 #A56131 #75A531
monochromatic
#151947 #232A76 #313BA5 #4A55C9 #7981D7

Accessibility & contrast

On white

9.13
#313BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#313BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA5
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA5#FFFFFF#000000##FFFFFF
##313BA51.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ba5;
/* rgb */ color: rgb(49, 59, 165);
/* oklch */ color: oklch(41.5% 0.169 272.5);
Tailwind
colors: {
  custom: {
    50: '#7971c1',
    500: '#313ba5',
    950: '#000000',
  },
}
SCSS
$custom: #313ba5;
$custom-light: #7971c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba5",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 234.828,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41487,
    "c": 0.16854,
    "h": 272.5
  },
  "luminance": 0.06498
}

Semantic roles & 50–950 ramp

primary
#313BA5
secondary
#C0B972
accent
#D14ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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