#313AA0#313AA0

#313AA0 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.163 H 272.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#313AA0
RGBrgb(49, 58, 160)
HSLhsl(235, 53%, 41%)
HSVhsv(235, 69%, 63%)
CMYKcmyk(69.4%, 63.8%, 0%, 37.3%)
CIE-LABlab(29.95, 30.86, -56.42)
CIE-LCHlch(29.95, 64.31, 298.68°)
OKLaboklab(40.85% 0.0082 -0.1628)
OKLCHoklch(40.85% 0.163 272.9)
XYZxyz(9.1227, 6.2163, 33.9700)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA0 #A09731
analogous
#3171A0 #313AA0 #5F31A0
triadic
#313AA0 #A0313A #3AA031
tetradic
#313AA0 #A03171 #A09731 #31A05F
square
#313AA0 #A03171 #A09731 #31A05F
split-complementary
#313AA0 #A05F31 #71A031
monochromatic
#141842 #232971 #313AA0 #4752C7 #767ED5

Accessibility & contrast

On white

9.36
#313AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA0
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA0#FFFFFF#000000##FFFFFF
##313AA01.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313aa0;
/* rgb */ color: rgb(49, 58, 160);
/* oklch */ color: oklch(40.9% 0.163 272.9);
Tailwind
colors: {
  custom: {
    50: '#7870bd',
    500: '#313aa0',
    950: '#000000',
  },
}
SCSS
$custom: #313aa0;
$custom-light: #7870bd;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa0",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 160
  },
  "hsl": {
    "h": 235.135,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40853,
    "c": 0.16302,
    "h": 272.9
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#313AA0
secondary
#BDB770
accent
#D14BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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