#313BA8#313BA8

#313BA8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.173 H 272.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#313BA8
RGBrgb(49, 59, 168)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 66%)
CMYKcmyk(70.8%, 64.9%, 0%, 34.1%)
CIE-LABlab(30.90, 33.09, -59.70)
CIE-LCHlch(30.90, 68.26, 299.00°)
OKLaboklab(41.76% 0.007 -0.1724)
OKLCHoklch(41.76% 0.173 272.3)
XYZxyz(9.8961, 6.6071, 37.7920)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BA8 #A89E31
analogous
#3176A8 #313BA8 #6231A8
triadic
#313BA8 #A8313B #3BA831
tetradic
#313BA8 #A83176 #A89E31 #31A862
square
#313BA8 #A83176 #A89E31 #31A862
split-complementary
#313BA8 #A86231 #76A831
monochromatic
#151A49 #232A79 #313BA8 #4C56CB #7B83D8

Accessibility & contrast

On white

9.05
#313BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#313BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BA8
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BA8#FFFFFF#000000##FFFFFF
##313BA81.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ba8;
/* rgb */ color: rgb(49, 59, 168);
/* oklch */ color: oklch(41.8% 0.173 272.3);
Tailwind
colors: {
  custom: {
    50: '#7a71c3',
    500: '#313ba8',
    950: '#000000',
  },
}
SCSS
$custom: #313ba8;
$custom-light: #7a71c3;
$custom-dark: #000000;
JSON
{
  "hex": "#313ba8",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 168
  },
  "hsl": {
    "h": 234.958,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.17256,
    "h": 272.3
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#313BA8
secondary
#C1BB74
accent
#D24ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #313BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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