#313FA4#313FA4

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

Color values

HEX#313FA4
RGBrgb(49, 63, 164)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(70.1%, 61.6%, 0%, 35.7%)
CIE-LABlab(31.55, 29.05, -56.23)
CIE-LCHlch(31.55, 63.29, 297.32°)
OKLaboklab(42.14% 0.0042 -0.1622)
OKLCHoklch(42.14% 0.162 271.5)
XYZxyz(9.7427, 6.8874, 35.9307)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA4 #A49631
analogous
#3179A4 #313FA4 #5D31A4
triadic
#313FA4 #A4313F #3FA431
tetradic
#313FA4 #A43179 #A49631 #31A45D
square
#313FA4 #A43179 #A49631 #31A45D
split-complementary
#313FA4 #A45D31 #79A431
monochromatic
#151B46 #232D75 #313FA4 #4959C9 #7984D7

Accessibility & contrast

On white

8.83
#313FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#313FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FA4
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FA4#FFFFFF#000000##FFFFFF
##313FA41.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313fa4;
/* rgb */ color: rgb(49, 63, 164);
/* oklch */ color: oklch(42.1% 0.162 271.5);
Tailwind
colors: {
  custom: {
    50: '#7874c0',
    500: '#313fa4',
    950: '#000000',
  },
}
SCSS
$custom: #313fa4;
$custom-light: #7874c0;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa4",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 232.696,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42136,
    "c": 0.16225,
    "h": 271.5
  },
  "luminance": 0.06888
}

Semantic roles & 50–950 ramp

primary
#313FA4
secondary
#BFB672
accent
#CB4ADD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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