#313FA0#313FA0

#313FA0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.157 H 271.6°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#313FA0
RGBrgb(49, 63, 160)
HSLhsl(232, 53%, 41%)
HSVhsv(232, 69%, 63%)
CMYKcmyk(69.4%, 60.6%, 0%, 37.3%)
CIE-LABlab(31.22, 27.59, -54.35)
CIE-LCHlch(31.22, 60.95, 296.91°)
OKLaboklab(41.79% 0.0043 -0.1567)
OKLCHoklch(41.79% 0.157 271.6)
XYZxyz(9.3871, 6.7452, 34.0581)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FA0 #A09231
analogous
#3176A0 #313FA0 #5A31A0
triadic
#313FA0 #A0313F #3FA031
tetradic
#313FA0 #A03176 #A09231 #31A05A
square
#313FA0 #A03176 #A09231 #31A05A
split-complementary
#313FA0 #A05A31 #76A031
monochromatic
#141A42 #232D71 #313FA0 #4757C7 #7682D5

Accessibility & contrast

On white

8.94
#313FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#313FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FA0
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FA0#FFFFFF#000000##FFFFFF
##313FA01.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313fa0;
/* rgb */ color: rgb(49, 63, 160);
/* oklch */ color: oklch(41.8% 0.157 271.6);
Tailwind
colors: {
  custom: {
    50: '#7874bd',
    500: '#313fa0',
    950: '#000000',
  },
}
SCSS
$custom: #313fa0;
$custom-light: #7874bd;
$custom-dark: #000000;
JSON
{
  "hex": "#313fa0",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 160
  },
  "hsl": {
    "h": 232.432,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41789,
    "c": 0.15675,
    "h": 271.6
  },
  "luminance": 0.06746
}

Semantic roles & 50–950 ramp

primary
#313FA0
secondary
#BDB370
accent
#CA4BDD
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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