#313EA3#313EA3

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

Color values

HEX#313EA3
RGBrgb(49, 62, 163)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(69.9%, 62%, 0%, 36.1%)
CIE-LABlab(31.21, 29.34, -56.18)
CIE-LCHlch(31.21, 63.38, 297.58°)
OKLaboklab(41.86% 0.005 -0.162)
OKLCHoklch(41.86% 0.162 271.8)
XYZxyz(9.5979, 6.7416, 35.4387)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA3 #A39631
analogous
#3177A3 #313EA3 #5D31A3
triadic
#313EA3 #A3313E #3EA331
tetradic
#313EA3 #A33177 #A39631 #31A35D
square
#313EA3 #A33177 #A39631 #31A35D
split-complementary
#313EA3 #A35D31 #77A331
monochromatic
#151A45 #232C74 #313EA3 #4957C8 #7883D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313EA3#FFFFFF#000000##FFFFFF
##313EA31.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)
#004FA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ea3;
/* rgb */ color: rgb(49, 62, 163);
/* oklch */ color: oklch(41.9% 0.162 271.8);
Tailwind
colors: {
  custom: {
    50: '#7873bf',
    500: '#313ea3',
    950: '#000000',
  },
}
SCSS
$custom: #313ea3;
$custom-light: #7873bf;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea3",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 233.158,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4186,
    "c": 0.16213,
    "h": 271.8
  },
  "luminance": 0.06743
}

Semantic roles & 50–950 ramp

primary
#313EA3
secondary
#BFB671
accent
#CC4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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