#313CA3#313CA3

#313CA3 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.165 H 272.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#313CA3
RGBrgb(49, 60, 163)
HSLhsl(234, 54%, 42%)
HSVhsv(234, 70%, 64%)
CMYKcmyk(69.9%, 63.2%, 0%, 36.1%)
CIE-LABlab(30.71, 30.64, -57.00)
CIE-LCHlch(30.71, 64.71, 298.26°)
OKLaboklab(41.49% 0.0066 -0.1645)
OKLCHoklch(41.49% 0.165 272.3)
XYZxyz(9.4911, 6.5281, 35.4031)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA3 #A39831
analogous
#3175A3 #313CA3 #5F31A3
triadic
#313CA3 #A3313C #3CA331
tetradic
#313CA3 #A33175 #A39831 #31A35F
square
#313CA3 #A33175 #A39831 #31A35F
split-complementary
#313CA3 #A35F31 #75A331
monochromatic
#151945 #232B74 #313CA3 #4955C8 #7881D6

Accessibility & contrast

On white

9.11
#313CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#313CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA3
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA3#FFFFFF#000000##FFFFFF
##313CA31.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#005669
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313ca3;
/* rgb */ color: rgb(49, 60, 163);
/* oklch */ color: oklch(41.5% 0.165 272.3);
Tailwind
colors: {
  custom: {
    50: '#7871bf',
    500: '#313ca3',
    950: '#000000',
  },
}
SCSS
$custom: #313ca3;
$custom-light: #7871bf;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca3",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 163
  },
  "hsl": {
    "h": 234.211,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41489,
    "c": 0.16462,
    "h": 272.3
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#313CA3
secondary
#BFB771
accent
#CF4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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