#313FA5#313FA5

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

Color values

HEX#313FA5
RGBrgb(49, 63, 165)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 65%)
CMYKcmyk(70.3%, 61.8%, 0%, 35.3%)
CIE-LABlab(31.63, 29.41, -56.69)
CIE-LCHlch(31.63, 63.87, 297.42°)
OKLaboklab(42.22% 0.0042 -0.1636)
OKLCHoklch(42.22% 0.164 271.5)
XYZxyz(9.8334, 6.9236, 36.4082)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA5 #A59731
analogous
#3179A5 #313FA5 #5D31A5
triadic
#313FA5 #A5313F #3FA531
tetradic
#313FA5 #A53179 #A59731 #31A55D
square
#313FA5 #A53179 #A59731 #31A55D
split-complementary
#313FA5 #A55D31 #79A531
monochromatic
#151B47 #232D76 #313FA5 #4A59C9 #7985D7

Accessibility & contrast

On white

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

On black

2.39
#313FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##313FA5#FFFFFF#000000##FFFFFF
##313FA51.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313fa5;
/* rgb */ color: rgb(49, 63, 165);
/* oklch */ color: oklch(42.2% 0.164 271.5);
Tailwind
colors: {
  custom: {
    50: '#7974c1',
    500: '#313fa5',
    950: '#000000',
  },
}
SCSS
$custom: #313fa5;
$custom-light: #7974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa5",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 232.759,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42223,
    "c": 0.16361,
    "h": 271.5
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#313FA5
secondary
#C0B672
accent
#CC4ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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