#313AA3#313AA3

#313AA3 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.1% C 0.167 H 272.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#313AA3
RGBrgb(49, 58, 163)
HSLhsl(235, 54%, 42%)
HSVhsv(235, 70%, 64%)
CMYKcmyk(69.9%, 64.4%, 0%, 36.1%)
CIE-LABlab(30.21, 31.94, -57.81)
CIE-LCHlch(30.21, 66.04, 298.92°)
OKLaboklab(41.12% 0.0081 -0.1669)
OKLCHoklch(41.12% 0.167 272.8)
XYZxyz(9.3883, 6.3225, 35.3688)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA3 #A39A31
analogous
#3173A3 #313AA3 #6131A3
triadic
#313AA3 #A3313A #3AA331
tetradic
#313AA3 #A33173 #A39A31 #31A361
square
#313AA3 #A33173 #A39A31 #31A361
split-complementary
#313AA3 #A36131 #73A331
monochromatic
#151945 #232974 #313AA3 #4953C8 #787FD6

Accessibility & contrast

On white

9.27
#313AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA3
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA3#FFFFFF#000000##FFFFFF
##313AA31.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313aa3;
/* rgb */ color: rgb(49, 58, 163);
/* oklch */ color: oklch(41.1% 0.167 272.8);
Tailwind
colors: {
  custom: {
    50: '#7970bf',
    500: '#313aa3',
    950: '#000000',
  },
}
SCSS
$custom: #313aa3;
$custom-light: #7970bf;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa3",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 163
  },
  "hsl": {
    "h": 235.263,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41124,
    "c": 0.16708,
    "h": 272.8
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#313AA3
secondary
#BFB971
accent
#D24BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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