#313FAA#313FAA

#313FAA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.170 H 271.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#313FAA
RGBrgb(49, 63, 170)
HSLhsl(233, 55%, 43%)
HSVhsv(233, 71%, 67%)
CMYKcmyk(71.2%, 62.9%, 0%, 33.3%)
CIE-LABlab(32.05, 31.23, -59.00)
CIE-LCHlch(32.05, 66.76, 297.89°)
OKLaboklab(42.67% 0.004 -0.1703)
OKLCHoklch(42.67% 0.17 271.4)
XYZxyz(10.2974, 7.1092, 38.8520)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FAA #AA9C31
analogous
#317BAA #313FAA #5F31AA
triadic
#313FAA #AA313F #3FAA31
tetradic
#313FAA #AA317B #AA9C31 #31AA5F
square
#313FAA #AA317B #AA9C31 #31AA5F
split-complementary
#313FAA #AA5F31 #7BAA31
monochromatic
#161C4B #232D7A #313FAA #4D5BCC #7C87D9

Accessibility & contrast

On white

8.67
#313FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FAA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FAA#FFFFFF#000000##FFFFFF
##313FAA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313faa;
/* rgb */ color: rgb(49, 63, 170);
/* oklch */ color: oklch(42.7% 0.170 271.4);
Tailwind
colors: {
  custom: {
    50: '#7a74c4',
    500: '#313faa',
    950: '#000000',
  },
}
SCSS
$custom: #313faa;
$custom-light: #7a74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#313faa",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 170
  },
  "hsl": {
    "h": 233.058,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42665,
    "c": 0.1704,
    "h": 271.4
  },
  "luminance": 0.0711
}

Semantic roles & 50–950 ramp

primary
#313FAA
secondary
#C2B975
accent
#CD49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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